hivefans

daemon.json

Jan 22nd, 2021
1,236
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //1.vim /etc/docker/daemon.json
  2. //2.输入下面的json
  3. {
  4.   "registry-mirrors": [
  5.     "https://hub-mirror.c.163.com",
  6.     "https://mirror.baidubce.com"
  7.   ]
  8. }
  9.  
  10. //3. 更新配置重启服务
  11. // systemctl daemon-reload
  12. // systemctl restart docker
RAW Paste Data