Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
crane append
for named pipes (#868)
* stream.Layer: Don't fail if Close is called twice Fixes #707 * crane.Append: Use stream.Layer for pipes It's annoying that `crane append` is hard to use with one-liners, which is the secret goal of most crane commands. We now stat the layer files and use a streaming layer for anything that's not a regular file, which includes named pipes, which fail if we try to open them multiple times. Now you can do this: $ crane append -f <(tar -c some-dir/ -f -) -t $IMAGE
- Loading branch information
1 parent
94913c0
commit a85f8fd
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters