in use
$ docker load [image].tar
When the command uploads the docker image, an error is reported:
Load an image from a tar archive or STDIN
Add parameter – I
$ docker load -i [image].tar
Still report error:
Error processing tar file(exit status 1): archive/tar: invalid tar header
Solution reference: https://stackoverflow.com/questions/40622162/docker-load-and-save-archive-tar-invalid-tar-header
reason:
Running docker save and docker load in different operating systems will cause this problem. Even on different physical machines, the same operating system may also appear.
Solution:
add the parameter – O when the docker is saved. Refer to the official website https://docs.docker.com/engine/reference/commandline/save/
Run on the machine where you want to save the. Tar image:
docker save -o [image].tar
Run on the machine that needs to be uploaded:
docker load -i [image].tar
Read More:
- Linux: tar Unpack .tar.bz2 File Error tar: Child returned status 2 tar: Error is not recoverable: exiting now
- Failed to copy files Error processing tar file [How to Solve]
- tar: Error opening archive: Failed to open ‘/Users/xxx/Library/Caches/Homebrew/downloads/348a16e
- [Solved] Brew Install ffmpeg Error: tar: Error opening archive: Failed to open
- [Solved] Error: Failure while executing; `tar –extract –no-same-owner –file /Users/wangchuangyan/Library/C
- Taro Install Error: permission denied, symlink ‘../lib/node_modules/@tarojs/cli/bin/taro‘ -> ‘/usr/local/bin/tar
- flutter | W/zipro(12512): Error opening archive D:\…Invalid file ERROR: dump failed because…
- [Solved] error adding symbols: File in wrong format collect2: error: ld returned 1 exit status
- ApplicationContext.xml file header error Referenced file contains errors
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- [Solved] VScode Error: undefined reference to ‘WinMain’ collect2.exe: error: ld returned 1 exit status
- [Solved] Docker Startup Error: panic: runtime error: invalid memory address or nil pointer dereference
- VSCode Error: collect2.exe:error:1d returned 1 exit status [How to Solve]
- [Solved] CentOS build a docker error: job for docker.service failed….
- [Solved] PCH Warning: header stop not at file scope
- NVM use error: exit status [How to Solve]
- vscode: Error loading workspace: err: exit status 1: stderr: build flag -mod=readonly only valid
- [Solved] Docker Error: SyntaxError: Non-ASCII character ‘\xe5‘ in file xxx
- DevC++ Error: [Error] Id returned 1 exit status [How to Solve]
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket