Docker:Docker 链接是否已被弃用? [英] Docker: Are Docker links deprecated?

查看:36
本文介绍了Docker:Docker 链接是否已被弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当阅读有关将容器链接在一起时,他们现在称其为旧链接,例如此处.

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

这篇文章 声称 links 在 Docker 中已被弃用1.9,但发行说明 没有提到这一点,已弃用功能列表 也没有提及.

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.

问题

为什么 Docker 现在为旧链接调用 links?我应该停止使用它们吗?

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

推荐答案

Docker 网络正在被推广为继任者 - https://docs.docker.com/engine/userguide/networking/

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

在 Docker 网络功能之前,您可以使用 Docker 链接功能来允许容器相互发现.随着 Docker 网络的引入,可以自动通过名称发现容器.

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.

关于您是否应该停止使用它们 - 是的.docker 世界目前发展非常快,现在一些版本的链接已经遗留"了.

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.

这篇关于Docker:Docker 链接是否已被弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆