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