安装docker
1.切换到root用户 :su
[cailly@localhost ~]$ su
Password:
2.安装:yum -y install docker
查看版本:docker version
3. 启动:service docker start
4.测试是否安装成功:docker run hello-world
5.查看容器 docker images
6.查看镜像 docker ps -a
7.删除镜像 docker container rm -f 镜像名称
拉取镜像
docker pull nginx
docker pull php:7.4-fpm
docker



