linux下卸载docker

[root@192 ~]# yum list installed | grep docker
Repository packages-microsoft-com-prod is listed more than once in the configuration
docker.x86_64                      2:1.13.1-103.git7f2769b.el7.centos  @extras
docker-client.x86_64               2:1.13.1-103.git7f2769b.el7.centos  @extras
docker-common.x86_64               2:1.13.1-103.git7f2769b.el7.centos  @extras
[root@192 ~]# yum -y remove docker.x86_64

 

linux操作docker

1.启动/停止
       * docker version # 查看版本
       * systemctl start docker # 启动
       * systemctl status docker #状态
       * systemctl stop  docker  #停止
       * systemctl enable docker #开机启动
       *$ sudo docker run hello-world #验证docker安装状态
       * $ sudo docker rm $(sudo docker ps -a -q)  #批量删除

2. 配置Docker镜像
       *  登录阿里云控制台,选择镜像加速器
       *   vi /etc/docker/daemon.json
       *   {
             "registry-mirrors": ["https://g8bhkk3i.mirror.aliyuncs.com"]
             }
        * sudo systemctl daemon-reload  #重载守护进程
        * sudo systemctl restart docker    #重启docker

  

01-08 14:44