question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown flag: from

See original GitHub issue

Hi. 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
StefanScherercommented, May 30, 2018

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?

0reactions
desirekoumcommented, Oct 15, 2019

Also here is my docker image docker:stable-git

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found