Docker API: Error processing tar file(exit status 1): archive/tar: invalid tar header

  docker, docker-api

I want to upload a zip file to my tomcat container using docker API.

http://{mydockerHost}:2375/containers/{containerId}/archive?path=/usr/local/tomcat/

But this i am getting this kind of expection,

{
    "message": "Error processing tar file(exit status 1): archive/tar: invalid tar header"
}

Kindly solve my problem, Thanks in advance

Source: Docker Questions

LEAVE A COMMENT