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

  • 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.

主站蜘蛛池模板: 平泉县| 安吉县| 新绛县| 交城县| 虞城县| 清河县| 锦州市| 东莞市| 定州市| 营口市| 天祝| 苍梧县| 阿克陶县| 乌拉特中旗| 原阳县| 乌鲁木齐市| 沛县| 平阳县| 葫芦岛市| 宁乡县| 上栗县| 常山县| 五峰| 鄂托克前旗| 五寨县| 建瓯市| 新闻| 温宿县| 清新县| 体育| 沭阳县| 景洪市| 罗田县| 双鸭山市| 房产| 丰城市| 德钦县| 茂名市| 玉环县| 志丹县| 仁怀市|