- 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.
推薦閱讀
- Visual C++程序設計教程
- 騰訊iOS測試實踐
- Game Programming Using Qt Beginner's Guide
- C語言程序設計案例式教程
- 零基礎學Java(第4版)
- JavaScript by Example
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第3版)
- 微信小程序項目開發實戰
- Learning Vaadin 7(Second Edition)
- Lighttpd源碼分析
- ElasticSearch Cookbook(Second Edition)
- JBoss:Developer's Guide
- OpenCV with Python Blueprints
- 現代CPU性能分析與優化
- 虛擬現實建模與編程(SketchUp+OSG開發技術)