mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 05:01:28 +00:00
Fix for Daemon crashing when wildcards are used for COPY/ADD
in the filename and the command itself Closes #12267 Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
@@ -663,7 +663,6 @@ func fakeContextAddDockerfile(ctx *FakeContext, dockerfile string) error {
|
||||
func fakeContext(dockerfile string, files map[string]string) (*FakeContext, error) {
|
||||
ctx, err := fakeContextWithFiles(files)
|
||||
if err != nil {
|
||||
ctx.Close()
|
||||
return nil, err
|
||||
}
|
||||
if err := fakeContextAddDockerfile(ctx, dockerfile); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user