Back

Docker安装

  • Platform: centos7

  • version: 5.0

安装

  • Uninstall old versions

    sudo yum remove docker \
                    docker-client \
                    docker-client-latest \
                    docker-common \
                    docker-latest \
                    docker-latest-logrotate \
                    docker-logrotate \
                    docker-engine
    
  • Install Docker CE

    sudo yum install -y yum-utils \
      device-mapper-persistent-data \
      lvm2
        
    # 设置stable源
    sudo yum-config-manager \
        --add-repo \
        https://download.docker.com/linux/centos/docker-ce.repo
            
    # 安装Docker CE
    sudo yum install docker-ce docker-ce-cli containerd.io
    

启动

  • Docker启动
    sudo systemctl start docker	# 启动Docker
    sudo systemctl status docker	# 查看Docker状态
    
Licensed under CC BY-NC-SA 4.0
最后更新于 Jul 31, 2019 13:56 +0800
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy