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

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.

主站蜘蛛池模板: 固阳县| 宝应县| 哈密市| 余庆县| 伽师县| 库尔勒市| 西昌市| 腾冲县| 陆良县| 措美县| 广安市| 百色市| 临颍县| 卫辉市| 镇江市| 和林格尔县| 高唐县| 邳州市| 斗六市| 称多县| 连江县| 芒康县| 甘南县| 浑源县| 新宾| 开化县| 蒲城县| 嘉峪关市| 邵阳市| 苍溪县| 海安县| 云梦县| 麻栗坡县| 张家港市| 石渠县| 神木县| 汉阴县| 营口市| 冕宁县| 稷山县| 湘潭市|