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

Getting --link error #356

Closed
digitaltim-de opened this issue Dec 23, 2022 · 4 comments
Closed

Getting --link error #356

digitaltim-de opened this issue Dec 23, 2022 · 4 comments
Labels
support Support requested

Comments

@digitaltim-de
Copy link

Docker 20.10.21 & 20.10.22:

Error:
dockerfile parse error line 23: Unknown flag: link

If i delete the --link tags it works.

Docker compose latest version 2.14.2 any idea why?

@maxhelias
Copy link
Collaborator

Your docker engine must be greater than 20.10.14

@maxhelias
Copy link
Collaborator

@maxhelias maxhelias added the support Support requested label Dec 23, 2022
@TacoV
Copy link

TacoV commented Dec 31, 2022

The Docker Engine versions OP uses are greater than 20.10.14.
I am experiencing the same issue on Docker Engine 20.10.17.

Sending build context to Docker daemon  3.674kB
Sending build context to Docker daemon  3.674kB
2 errors occurred:
        * Error response from daemon: dockerfile parse error line 23: Unknown flag: link
        * Error response from daemon: dockerfile parse error line 23: Unknown flag: link

The trick was in the last link: "This feature is only available when using the BuildKit backend, and is ignored when using the classic builder backend."
After export DOCKER_BUILDKIT=1 it all worked as expected

@maxhelias maxhelias pinned this issue Jan 13, 2023
@digitaltim-de
Copy link
Author

Can confirm, that DOCKER_BUILDKIT fix it. So closed.

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

No branches or pull requests

3 participants