Research deprecation of --link in dockerd
Closed this issue · 1 comments
Legacy networking
docker-compose.yml uses links: (docker run --link) to allow the various image containers to connect/talk to one another. This functionality has been deprecated in dockerd but not yet removed from it. Podman doesn't support it either.
This needs to be replaced with new network calls (docker network create).
Need to find out when functionality is planned for removal to better prioritize ticket(s) which should come from this one with steps to apply the necessary/required changes.
https://docs.docker.com/network/links/
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.
See Differences between user-defined bridges and the default bridge for some alternatives to using --link.