[root@zengmg docker]# vi daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com","http://hub-mirror.c.163.com"]
}
保存退出。
重启docker服务
service docker restart
成功!
————————————————
#curl -fsSL get.docker.com | sh
提示:
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker your-user
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/s ... emon-attack-surface
for more information.
翻译:
如果要将 Docker 用作非根用户,现在应考虑
将用户添加到\"docker\"组,内容包括: