您将需要将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所有命令。
编辑:您应该使用-o添加文件名(而不仅仅是目录),例如:
docker save -o c:/myfile.tar centos:16



