docker 导入导出镜像
生活随笔
收集整理的這篇文章主要介紹了
docker 导入导出镜像
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
擼了今年阿里、頭條和美團(tuán)的面試,我有一個(gè)重要發(fā)現(xiàn).......>>>
vincent@ubuntu:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE registry.cn-shenzhen.aliyuncs.com/gitlab-ce-zh/gitlab-ce-zh latest 012cff0c259c 3 weeks ago 1.53GB klokantech/openmaptiles-server latest febbfb506bf2 2 months ago 1.4GB self-manager-web latest 71370f714900 6 months ago 311MB test latest 46c037562904 6 months ago 311MB tomcat latest 2d2a8abf8039 6 months ago 292MB nginx latest b8efb18f159b 6 months ago 107MB mysql latest c73c7527c03a 6 months ago 412MB hello-world latest 1815c82652c0 7 months ago 1.84kB vincent@ubuntu:~$查看當(dāng)前有哪些鏡像
將gitlab鏡像導(dǎo)出
vincent@ubuntu:~$ docker save -o ~/gitlab.tar registry.cn-shenzhen.aliyuncs.com/gitlab-ce-zh/gitlab-ce-zh:latest registry.cn-shenzhen.aliyuncs.com/gitlab-ce-zh/gitlab-ce-zdocker save -o 鏡像保存文件地址 鏡像名
導(dǎo)入gitlab鏡像
docker load < ./gitlab.tar?
總結(jié)
以上是生活随笔為你收集整理的docker 导入导出镜像的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ubuntu16.04安装VMware网
- 下一篇: nginx安装配置http、tcp代理