Unknown flag: from
See original GitHub issueHi. I’m trying to build node image 8.11 from Your repo.
I have had to change FROM microsoft/windowsservercore:10.0.14393.1707 and add my build number. But have a problem,
Step 14/17 : COPY --from=download /nodejs /nodejs
Unknown flag: from
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Docker "unknown flag: --from" - Stack Overflow
I am trying to build an image using simple Dockerfile. However I am unable to get passed the above issue. I came across...
Read more >Unknown flag: from · Issue #34762 · moby/moby - GitHub
Description Multi-stage builds fail with error: Unknown flag: from. Steps to reproduce the issue: Given this Dockerfile.
Read more >'FROM' and 'COPY' unknown flag in Dockerfile
Hi, I am trying to build a linuxkit/kernel-4.9.x for ARM64 platform, since no aarch64 image available in the public linuxkit hub, ...
Read more >How I Fixed: unknown flag: -project-name in GitHub Actions
The solution to this problem is super simple. Use docker-compose for your GitHub actions commands. The problem arises because GitHub actions ...
Read more >Unknown flag: --platform when run in pipeline to AWS
I am using macbook M1 and I got the following error when try executing the command below in docker: docker build -t $APP_NAME:$CI_PIPELINE_IID- ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow, that’s feels like 10 “container years” old 😉
You are able to run these image that are on Docker Hub, but not to build these images. A multi-stage Dockerfile is the result of doing manual steps. I’ve blogged in https://stefanscherer.github.io/how-to-build-nodejs-nanoserver-image/ how to build Nanoserver image long before there was multi-stage builds. You have to split up the Dockerfile into two Dockerfiles for each stage. And you have to create a container from the first stage, then copy a folder back onto the host. Then the second Dockerfile can copy that into the Nanoserver image.
Maybe that helps you.
Just out of curiosity: Which Docker base images are you able to run in this environment? The latest microsoft/nanoserver:sac2016?
Also here is my docker image docker:stable-git