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

Error to build docker image with docker file... #398

Open
mcarbonneaux opened this issue Nov 9, 2022 · 1 comment
Open

Error to build docker image with docker file... #398

mcarbonneaux opened this issue Nov 9, 2022 · 1 comment

Comments

@mcarbonneaux
Copy link

i used mcarouter/scripts/docker/ubuntu/Dockerfile to build my image.

mcrouter/mcrouter/scripts/docker/ubuntu > docker build .
Sending build context to Docker daemon  6.144kB
Error response from daemon: Dockerfile parse error line 12: Unknown flag: mount

the problem are related with this line:

RUN             --mount=type=bind,target=/tmp/scripts,source=scripts /tmp/scripts/deps.sh
RUN             --mount=type=bind,target=/tmp/scripts,source=scripts /tmp/scripts/build.sh

the docker build don't understand this syntax.

i use docker 19.03.5, y don't found information on internet about this syntax and what version support it!
what version of docker build (or any other tool) to build this dockerfile ?

@mcarbonneaux
Copy link
Author

mcarbonneaux commented Nov 9, 2022

ok i found, is experimental syntax of the docker build.
need to be activated by environement variable before launch docker build.

> export DOCKER_BUILDKIT=1

but we need at least v18.09 of docker or use https://github.com/moby/buildkit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant