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
Unknown flag: from #34762
Comments
The server needs to be 17.05 or later. |
Thank you for the quick reply. Perhaps 1 minor follow-up question/suggestion:
|
cc @mstanleyjones |
I'm not sure why it led you to believe that. The daemon is where the API gets interpreted, so the API needs to support multistage builds. Are you sure this really needs clarification in the docs? |
Seems like a common point of confusion for others as well (e.g. https://youtu.be/yuW6BwOS8Eg?t=38m53s) |
@mstanleyjones
I would argue yes, this needs clarification in the docs. It's not reasonable to expect docker end-users to know that "the daemon is where the API gets interpreted, so the API needs to support multistage builds". When the first line of docs states: |
If you find this looking for travis-ci support for multi-stage docker builds, try updating the docker version in your build as per https://docs.travis-ci.com/user/docker/#Installing-a-newer-Docker-version |
Description
Multi-stage builds fail with error:
Unknown flag: from
Steps to reproduce the issue:
FROM golang:1.7.3 as builder
andCOPY --from=builder
(per docs), but I receive a different error:Error parsing reference: "golang:1.7.3 as builder" is not a valid repository/tag
docker build -f Dockerfile -t petermbenjamin/orthrus:latest .
Describe the results you received:
Describe the results you expected:
I expected the 2nd build stage to
COPY --from=0
(previous stage) the binary to the root of the alpine container and docker build to complete successfully.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Also tried against edge:
17.07.0-ce
Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
macOS Sierra version 10.12.6
The text was updated successfully, but these errors were encountered: