75.第十七章 企业级容器技术docker -- 容器操作基础命令(三)

1.4 容器操作基础命令

容器生命令周期
在这里插入图片描述

1.4.1 启动容器

docker run 可以启动容器,进入到容器,并随机生成容器ID和名称

1.4.1.1 启动第一个容器

范例: 运行 docker 的 hello world

[root@rocky8 ~]# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete 
Digest: sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685
Status: Downloade

猜你喜欢

转载自blog.csdn.net/qq_25599925/article/details/121856982