New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker commit > invalid tar header #33586
Comments
I'm hitting the same issue, it seems to be related to the size of the container. Steps
Result
Environment docker version
docker info
|
Same issue here with Windows 10 Creators Update and latest Docker from edge channel. I was trying to restore 1.5 gig database backup file to SQL Server when got that error. Complete db size would have been around 15 gigs. Client: Server: |
ping @johnstep PTAL |
For what it's worth, I also had SQL Server and database files in my container. Looking at #35075, I believe that SQL database files are expanded to be of a specific size (presumably with the extra space zeroed out) so it is very possible that this is issue is similar to that one. |
I can repro this on a SQL 2017 (microsoft/mssql-server-windows-developer) restoring a ~30GB database. I'm seeing this particular error manifest itself when I Version: 17.09.1-ce |
Does it work if you set the Easiest way to do so is to create a After changing the configuration, the dockerd daemon must be restarted |
No. I had to set the size storage option and restart dockerd to even get
to this point. If I hadn’t made the storage-opt adjustment, I would have
just received an error restoring the database complaining that there was
not enough space on disk.
…On Sat, Dec 16, 2017 at 3:13 PM Sebastiaan van Stijn < ***@***.***> wrote:
Does it work if you set the size storage option for the daemon to a
bigger value? (I think the default may be 20 or 30G);
https://github.com/docker/cli/blob/master/docs/reference/commandline/dockerd.md
Easiest way to do so is to create a daemon.json configurationfile for
this (see the linked document); typing from my phone so can't easily give a
full example, but happy to help.
After changing the configuration, the dockerd daemon must be restarted
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#33586 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADrezZnY6kUa8k5uPRS3dj7K_GejZY-Xks5tBCSDgaJpZM4Nz4ig>
.
|
Thanks for the extra information; I was wondering if the "invalid tar header" would have been due to that (and just an incorrect / confusing error) |
We are also experiencing this issue dockerising oracle and windows server core as the base image
We have changed the daemon settings to 100G to allow the dbca command above to complete but the image push fails
|
@johnstep I think you mentioned that this could possibly be due to https://github.com/Microsoft/go-winio using an older version of archive/tar (based on Go 1.6)? https://github.com/Microsoft/go-winio/tree/424d62c72ec0db3fa2b19791b6f96c7eb5a5e412/archive/tar |
Yes, apparently the 8 GB restriction was removed in Go 1.8. We need to review whether that modified copy of archive/tar in go-winio is still required and, if so, update it; otherwise, remove it and switch to the standard runtime package. I spoke with @jhowardmsft separately, as well. |
I notice most of the posts above have remapped docker to d:\ (in my case symlinked c:\programdata to d:\programdata) so i have tested this on docker-ee 17.9 with a very large c:\ partition to confirm windows mklink is not the cause Sadly the result is the same |
Is the attempt to fix this being done as part of #35739 ? |
I have the same problem. Restoring a 15GB database into SQLExpress.
|
Just wanted to drop a line saying I'm experiencing this issue in 18.03 stable. I'm trying to import a DB that ends up taking 25ish GB. It run fine (once I increased storage-opts), but as soon as I try to save the container to an image, I get the invalid tar header error. This is the case when I build build the container, as well as when I manually run the steps in a container and then trying to commit said container. It sounds like we have a possible solution, but if you need any more information or help, I'm game to experiment and would love to get this working. Just let me know how I can help. Windows 10: 1607 (Build 14393.2125)
|
Alguma atualização para o problema? Estou com o mesmo erro, segue as informações do docker: Contêineres: 8 Em |
I have this problem as well, is this going to be fixed at all? |
Same here |
I suspect this was fixed in #41430 (for Docker 20.10.0), assuming #33586 (comment) was an accurate diagnosis. |
Ah, yes, I guess this was fixed by #41430 / microsoft/go-winio#175 Let me go ahead and close |
Description
Hi,
After importing a couple of databases in the ms developer sql database image, then stopping it, and committing, i get the following error:
The Databases are quite big though, but anyway, it should not fail like that.
Is there any more info i can give you to solve that issue?
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
image comitted correctly
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
&docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Windows Server 2016 and updated docker
https://social.msdn.microsoft.com/Forums/en-US/14d2ad0c-1116-42c7-8449-29d495be4f30/docker-commit-invalid-tar-header?forum=windowscontainers
Screenshot of windowsfilter folder properties https://social.msdn.microsoft.com/Forums/getfile/1080800
The text was updated successfully, but these errors were encountered: