this change for china mainland docker users. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 # create docker user config dir sudo mkdir -p /etc/docker # touch docker config file sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": [ "https://1nj0zren.mirror.aliyuncs.com", "https://docker.mirrors.ustc.edu.cn", "http://f1361db2.m.daocloud.io", "https://registry.docker-cn.com" ] } EOF # reload and restart docker sudo systemctl daemon-reload sudo systemctl restart docker