官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 布拖县| 泰宁县| 得荣县| 连南| 沈阳市| 五原县| 略阳县| 金阳县| 平潭县| 平罗县| 平乐县| 仪征市| 礼泉县| 伊宁市| 介休市| 芦山县| 普兰店市| 洛扎县| 康平县| 宜章县| 芒康县| 呼伦贝尔市| 留坝县| 华亭县| 长丰县| 兴义市| 兴化市| 西华县| 临潭县| 洪江市| 拉萨市| 顺昌县| 衡阳市| 鹤峰县| 鄢陵县| 阳东县| 玉林市| 丹棱县| 和平县| 磐石市| 巴彦淖尔市|