centos7版本,博客写于2020-04-25 19:58:35

每次安装都去百度,太折腾,直接记录下

一、安装docker ce

官网地址:https://docs.docker.com/engine/install/centos/

 

配置加速:

/etc/docker/daemon.json

{
    "registry-mirrors": ["http://hub-mirror.c.163.com", "https://3laho3y3.mirror.aliyuncs.com"]
}

重新加载配置、重启

systemctl daemon-reload
systemctl restart docker

 开机自启动:

# 设置开机启动
systemctl enable docker
# 将指定用户添加到用户组
usermod -aG docker root

 

相关文章:

  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-23
  • 2021-10-06
  • 2021-12-19
  • 2021-07-10
  • 2021-12-11
  • 2021-11-19
相关资源
相似解决方案