Docker

快速开始

安装

yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce

配置

/etc/docker/daemon.json
{
        "registry-mirrors": ["https://dockerhub.azk8s.cn"],
        "live-restore": true
}

启动

systemctl enable docker
systemctl start docker

最后更新于