还没有系统学习Docker,抽出时间还是要系统学习学习的,目前,还是先记录记录遇到的一些问题:
1:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@gatk-test ~]# docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
解决方式:
[root@gatk-test ~]# service docker start
2:想要从一个机器上拷贝docker镜像到另一个机子,应该如何导出docker镜像,并再次导入呢?
#docker镜像导出
[root@2pang images]docker images
[root@2pang images]docker save e4ae643c9055 > /home/data/docker/images/test-docker-image.tar
[root@2pang images]scp /home/data/docker/images/test-docker-image.tar root@192.168.0.10:/data/docker/images/test-docker-image.tar