docker daemon.json 没有配置其他时 可以直接运行修改镜像为163镜像
cat <<EOF > /etc/docker/daemon.json { "registry-mirrors": ["http://hub-mirror.c.163.com"] } EOF systemctl restart docker.service
docker 再成镜像
docker commit -m "change somth" -a "opretor" container_id image_name eg: docker commit -m "install httpd" -a ”liming" fffffff frankie/centos
docker 代理
mkdir -p /etc/systemd/system/docker.service.d
vim /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=http://proxy.example.com:80/" systemctl daemon-reload systemctl restart docker systemctl show --property=Environment docker