您将需要将Docker映像另存为tar文件:
docker save -o <path for generated tar file> <image name>
那么你的图像复制到与普通文件传输工具,如一个新的系统cp
,scp
或rsync
(首选大文件)。之后,您必须将映像加载到Docker中:
docker load -i <path to image tar file>
PS:您可能需要sudo
所有命令。
docker save -o c:/myfile.tar centos:16