docker daemon 设置代理

http_proxy=109.105.4.17:8118 & systemctl start docker

centos:

Edit /etc/sysconfig/docker and add the following lines:

HTTP_PROXY='http://user:password@proxy-host:proxy-port'
HTTPS_PROXY='http://user:password@proxy-host:proxy-port'
# systemctl restart docker


ubuntu:

Edit /etc/defaults/docker.io and add the following lines:

export http_proxy='http://user:password@proxy-host:proxy-port'

For those settings to be taken into account, you’ll have to restart your docker daemon:

$ sudo service docker.io restart
 

--------------------------------------------------------

打包本地镜像

docker save mhcvs2/mhc:conductor_ui > conductor_ui.tar

加载打包的镜像

docker load > conductor_ui.tar