X Tutup
Skip to content

Use canonical form of Docker folder when building TAR files#69

Merged
marcuslinke merged 1 commit intodocker-java:masterfrom
cheinema:canonical-file
Oct 2, 2014
Merged

Use canonical form of Docker folder when building TAR files#69
marcuslinke merged 1 commit intodocker-java:masterfrom
cheinema:canonical-file

Conversation

@cheinema
Copy link
Copy Markdown

@cheinema cheinema commented Oct 2, 2014

In BuildImageCmdImpl#buildDockerFolderTar a canonical form of the source files referenced in the Dockerfile is used. But the Docker folder is passed in the given form to the CompressArchiveUtil.

CompressArchiveUtil#relativize creates absolute TAR archive entries if the canonical form of the source files differs from the given form of the Docker folder. As a result, the Docker deamon can not find the files during the build. This can happen in case-insensitive file systems such as Windows, for example.

As a solution, the canonical form of the Docker folder must be used.

In BuildImageCmdImpl#buildDockerFolderTar a canonical form of the source
files referenced in the Dockerfile is used. But the Docker folder is
passed in the given form to the CompressArchiveUtil.

CompressArchiveUtil#relativize creates absolute TAR archive entries if the
canonical form of the source files differs from the given form of the
Docker folder. As a result, the Docker deamon can not find the files
during the build. This can happen in case-insensitive file systems such as
Windows, for example.

As a solution, the canonical form of the Docker folder must be used.
marcuslinke added a commit that referenced this pull request Oct 2, 2014
Use canonical form of Docker folder when building TAR files
@marcuslinke marcuslinke merged commit 8cbb22a into docker-java:master Oct 2, 2014
@marcuslinke
Copy link
Copy Markdown
Contributor

Thanks for finding and patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup