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

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

问题描述

当阅读有关将容器关联在一起时,他们现在称之为旧链接 here

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.

问题

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

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.

关于是否停止使用它们 - 是的。码头世界目前正在迅速发展,现在链接已经被遗留了几个版本。

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链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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