(1)通过当前运行的container
创建image
:
# docker commit 281e7d886185 <docker image name>
(2)压缩image
:
# docker save <docker image name> | gzip > <docker image name>.tar.gz
(3)加载image
:
# zcat <docker image name>.tar.gz | docker load
参考资料:
HOW TO CREATE A DOCKER IMAGE FROM A CONTAINER;
How to copy Docker images from one host to another without using a repository。