Docker Community Forums

Share and learn in the Docker community.

Unable to link two Docker containers on a custom bridge network on Windows

Dear All,

I have created below custom-bridge network:
docker network create -d bridge --subnet custom-bridge

Then created bellow the two dockres:
docker run -tid --name Cont-One --network custom-bridge alpine
docker run -tid --name Cont-Two --network custom-bridge --link Cont-One alpine

All went well during the execution of commands, however when I check the host file within Cont-Two docker there is no link line there. it looks like it did not work…

could you please help me why, thanking you in addvance for any help.