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

The --link flag is a legacy feature of Docker: 'Error: unknown flag: --link' #58

Open
simonsigre opened this issue Jan 4, 2020 · 0 comments

Comments

@simonsigre
Copy link

The reference to --link should be modified as --link is a deprecated feature .

$ docker run -ti -d -p 80:80 -e MYSQL_ENV_MYSQL_ROOT_PASSWORD=my-secret-pw --name ipam --link phpipam-mysql:mysql pierrecdn/phpipam
Warning: The --link flag is a legacy feature of Docker. It may eventually be removed. Unless you absolutely need to continue using it, we recommend that you use user-defined networks to facilitate communication between two containers instead of using --link. One feature that user-defined networks do not support that you can do with --link is sharing environment variables between containers. However, you can use other mechanisms such as volumes to share environment variables between containers in a more controlled way.
``` - https://docs.docker.com/network/links/

This feature has already been removed from stable builds of `podman` ... will endeavour to propose a solution shortly. For search purposes the following error is observed;

Error: unknown flag: --link

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