Docker 安装 in CentOS

2018-11-11  本文已影响0人  一杉风雨

参考官方教程

  1. Uninstall old versions
sudo yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-selinux \
                  docker-engine-selinux \
                  docker-engine
  1. Set up the repository
sudo yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2

sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
  1. Install docker ce
sudo yum install -y docker-ce
  1. Install a specific version of docker ce
yum list docker-ce --showduplicates | sort -r
sudo yum install docker-ce-<VERSION STRING>
  1. Start docker
sudo systemctl start docker
上一篇下一篇

猜你喜欢

热点阅读