Windows下解决Error response from daemon: Error processing tar file: archive/tar: invalid tar header问题
Windows下解决Error response from daemon: Error processing tar file: archive/tar: invalid tar header问题按照docker如下指令导出导入示例在windows中执行:docker export cbcdf17715a7 > test.tarcat test.tar | docker import - t
·
Windows下解决Error response from daemon: Error processing tar file: archive/tar: invalid tar header问题
按照docker如下指令导出导入示例在windows中执行:
docker export cbcdf17715a7 > test.tar
cat test.tar | docker import - test:new
会出现Error response from daemon: Error processing tar file(exit status 1): archive/tar: invalid tar header错误!
">"符号仅在linux下使用 windows中只能用-o导出
解决方法如下:
导出格式:
docker container export <container_id> -o <image_name>.tar
导入格式:
docker image import <image_name>.tar <custom_image_name>
大功告成!
更多推荐
已为社区贡献1条内容
所有评论(0)