by Devin Yang

建立于: 8年前 ( 更新: 8年前 )

前言

如何封存docker的image成为tar档,并且载回docker image。
我们可以用docker save及docker load进行。

步骤如下:

一、例如我有如下的images.
save images
二、我想要封存deviny/fpm:7.1.9这个image,那么可以 docker save 运行如下命令:
(当未指定7.1.9时,就会有所有的image)
docker save
三、如果要还原,可用 docker load 命令:
docker load
当我们再运行 docker images 查看,即可看见image回来了。

Tags: docker

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


docker,laravel

用Docker创建Lravel开发环境超简单

Laravel 5.5系统环境您准备好了吗? laravel/framework 5.5.x-dev requires php >=7.0 -> your PHP version (5.6.30) does not satisfy that requirement. 这篇文章描述如何使用Docker创建Laravel的开发环境。 有了简单到爆炸的D-Laravel简易bash, 不要在说我无法创建Laravel的开发环境了。

docker,dlaravel

D-Laravel 1.5.5变更说明

D-Laravel的fpm image在php 7.2.1以前是使用docker php官方的dockerfile重build的, 并且所以我可以指定了fpm的默认的owner是dlaravel, --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody) --with-fpm-group=GRP Set the group for php-fpm to run as.

laravel docker

关於D-Laravel的项目模式

如果您是新使用者,建议您改用我的最新环境phpenv。https://github.com/DevinY/phpenv