Skip to content

Archive/tar: invalid tar header message when export or import #660

@swieczkowski

Description

@swieczkowski

Expected behavior

Success import image.

Actual behavior

"Error response from daemon: Error processing tar file(exit status 1): archive/tar: invalid tar header"

Information

  • If we want to export container using > then we got wrong file/error on import.
  • If we want to import image using | then we got error
  • Diagnostic ID: 65607FD9-95F8-4697-86E9-82CAC340FD2A/2017-04-20_21-49-26
  • Windows 10 Pro
  • Docker 17.05.0-ce-rc1-wind8 (11189) edge 73d01bb
  • Temporary solution for export is to use: docker export --output="export.tar" container_id
  • Temporary solution for import is to use: docker import export.tar

Steps to reproduce the behavior

  1. docker export container_id > export.tar
  2. cat export.tar | docker import - exampleimagelocal:new

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions