- Learning Docker
- Pethuru Raj Jeeva S. Chelladhurai Vinod Singh
- 96字
- 2021-07-16 14:07:02
Running the first Docker container
Now, you can start your first Docker container. It is standard practice to start with the basic Hello World! application. In the following example, we will echo Hello World!
by using a busybox
image, which we have already downloaded, as shown here:
$ sudo docker run busybox echo "Hello World!" "Hello World!"
Cool, isn't it? You have set up your first Docker container in no time. In the preceding example, the docker run
subcommand has been used for creating a container and for printing Hello World!
by using the echo
command.
推薦閱讀
- C++面向對象程序設計(第三版)
- 從零開始:數字圖像處理的編程基礎與應用
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- Java從入門到精通(第4版)
- Angular開發入門與實戰
- Linux C編程:一站式學習
- JavaScript應用開發實踐指南
- Kubernetes進階實戰
- Beginning C++ Game Programming
- IBM Cognos TM1 Developer's Certification guide
- Python程序設計開發寶典
- Python自然語言理解:自然語言理解系統開發與應用實戰
- Web程序設計:ASP.NET(第2版)
- Tableau Dashboard Cookbook
- Python GUI Programming Cookbook(Second Edition)