Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

When reading about linking containers together they now call it legacy links e.g. here.

This article claims links got deprecated in Docker 1.9, but the release notes doesn't mention this and the list of deprecated features doesn't mention it either.

Question

Why does Docker now call links for legacy links? And should I stop use them?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
451 views
Welcome To Ask or Share your Answers For Others

1 Answer

Docker networking is being promoted as successor - https://docs.docker.com/engine/userguide/networking/

Before the Docker network feature, you could use the Docker link feature to allow containers to discover each other. With the introduction of Docker networks, containers can be discovered by its name automatically.

On whether you should stop using them - yes. The docker world is currently moving very fast, and links has been "legacy" for a few releases now.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...