[root@localhost ~]#docker search centos #查看查看镜像 [root@localhost ~]#docker pull centos #下载镜像 [root@localhost ~]#docker run -it centos:latest /bin/bash #运行指定容器 [root@localhost ~]#docker ps #查看当前正在运行的容器 [root@localhost ~]#docker images #显示本机上的镜像
[root@localhost ~]#docker search centos #查看查看镜像 [root@localhost ~]#docker pull centos #下载镜像 [root@localhost ~]#docker run -it centos:latest /bin/bash #运行指定容器 [root@localhost ~]#docker ps #查看当前正在运行的容器 [root@localhost ~]#docker images #显示本机上的镜像