CentOS7 Docker 安裝

  • yum -y install docker-io
  • service docker start
  • docker run hello-world
  • 配置阿里加速器:
sudo sed -i "s|ExecStart=/usr/bin/dockerd|ExecStart=/usr/bin/dockerd --registry-mirror=加速器地址|g" /etc/systemd/system/docker.service
sudo systemctl daemon-reload
sudo service docker restart```
相關文章
相關標籤/搜索