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

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

问题描述

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

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

本文声称拥有链接在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现在调用链接是否有旧版链接?我应该停止使用它们吗?

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天全站免登陆