Docker容器件基于Link实现单向通信


简介:介绍基于link单向通信

不使用IP地址,使用唯一的名字

docker run -itd --name tomcat1 --link mydb centos:7

mysql:5.7 镜像没有ping命令:

apt-get update

apt install -y iputils-ping



test2026-06-07 20:37