Skip to content
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

LCOW: Multi Stage Dockerfile build fails #1313

Closed
mrdaemon opened this issue Nov 11, 2017 · 6 comments
Closed

LCOW: Multi Stage Dockerfile build fails #1313

mrdaemon opened this issue Nov 11, 2017 · 6 comments

Comments

@mrdaemon
Copy link

mrdaemon commented Nov 11, 2017

Expected behavior

Building a multi-stage Dockerfile with COPY --from=first_stage /source . should work

Actual behavior

The COPY instruction fails with:

COPY failed: failed to open file /tmp/237b384ab94183ddddb5e0014aa40adbee8fd43dd2e69aa182f9af22b7f7d858-mount/source: invalid arguments

Information

Diagnostic ID: C8876D51-C0BD-4084-ABCC-EC253699359C/2017-11-11_04-17-18

Docker version:

Client:
 Version:      17.11.0-ce-rc3
 API version:  1.34
 Go version:   go1.8.4
 Git commit:   5b4af4f
 Built:        Wed Nov  8 03:03:30 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.11.0-ce-rc3
 API version:  1.34 (minimum version 1.24)
 Go version:   go1.8.5
 Git commit:   5b4af4f
 Built:        Wed Nov  8 03:13:48 2017
 OS/Arch:      windows/amd64
 Experimental: true

Running on Windows 10 Enterprise Version 1709 (Fall Creator's Update)
LCOW is enabled.

Steps to reproduce the behavior

  1. Setup a multi stage Dockerfile with FROM image AS builder as the first stage
  2. In the second stage FROM image attempt to copy a file from the first stage using COPY --from=builder /source .
  3. Witness the failure documented above

An example of such a Dockerfile can be found here

@mrdaemon
Copy link
Author

Still occurs as of edge channel build17.11.0-ce-rc4-win39 14244 e557194

@vsaroopchand
Copy link

I am facing the same issue on edge channel with multi-stage builds and now pushes

The push refers to repository [docker.io/[my-user]/[my-container]
61f0b45827ae: Pushing [==================================================>] 39.85MB/39.85MB
f9881d507c7a: Pushing [==================================================>] 103.8MB/103.8MB
dedc51be25b9: Pushing [==================================================>] 73.4MB/73.4MB
529bfbd63bb7: Retrying in 1 second
6bbd1f364d24: Retrying in 1 second
a75caa09eb1f: Retrying in 5 seconds
open \tmp\3e763ca817365693443c3ca4318058cb3153ea6dd0487b1169a618103b15286b-mount\app\Common.dll: The system cannot find the path specified.

Any updates on this issue?

@mrdaemon
Copy link
Author

mrdaemon commented Dec 6, 2017

Still happens as of edge channel build 17.11.0-ce-win40 (14328), only now it also hangs for a while in the previous intermediate container that sets WORKDIR.

@rn
Copy link
Contributor

rn commented Dec 7, 2017

It's a known issue and there are several other things which don't work yet around build with LCOW:
microsoft/opengcs#169
microsoft/opengcs#168
microsoft/opengcs#156

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants