一世为白 2019-06-26
vim /etc/docker/daemon.json { "registry-mirrors": ["https://90sc1jac.mirror.aliyuncs.com"], "storage-driver": "overlay" }
$ systemclt stop docker.service $ mv /var/lib/docker /data/docker $ ln -s /data/docker /var/lib/docker $ systemctl start docker.service
#时间,时区问题 RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/shanghai" > /etc/timezone
$ docker run --name <name> -v /etc/localtime:/etc/localtime:ro ...
$ docker cp <containerId>:/file/path/within/container /host/path/target
$ sudo docker save busybox-1 > /home/save.tar
$ sudo docker export <CONTAINER ID> > /home/export.tar
$ docker load < /home/save.tar