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

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.

主站蜘蛛池模板: 石狮市| 屏边| 正安县| 阿克苏市| 柳江县| 夹江县| 宜兰县| 呼和浩特市| 内黄县| 正镶白旗| 金昌市| 富顺县| 耒阳市| 东平县| 保德县| 延津县| 台中市| 宣威市| 呼和浩特市| 鲜城| 马山县| 凌海市| 西昌市| 新源县| 苍梧县| 大关县| 安泽县| 辽阳市| 临澧县| 托里县| 台东市| 龙游县| 澄迈县| 婺源县| 嘉禾县| 南郑县| 六枝特区| 吕梁市| 广河县| 双江| 玉田县|