-
Notifications
You must be signed in to change notification settings - Fork 884
Closed
Description
After upgrade from 1.11 to 1.12.3 containers cannot resolve domain names of other containers.
Also I noticed that containers created with existing maven file have random alias instead of predefined which was equal to container name.
docker network create -d bridge n1 || true
mkdir -p x
cat<<EOF > x/Dockerfile
FROM nginx:1.10.1
EOF
docker rm -fv xxx || true
pushd x
docker build -t xxx .
docker run -d --net-alias=xxx --name=xxx --net=n1 xxx
popd
mkdir -p y
cat<<EOF > y/Dockerfile
FROM nginx:1.10.1
CMD ping -c 1 xxx
EOF
docker rm -fv yyy || true
pushd y
docker build -t yyy .
docker run -i --net-alias=yyy --name=yyy --net=n1 yyy # breaks her with unknown host
docker ps
for dc in xxx yyy ; do
echo "docker container $dc"
docker inspect $dc | grep -A 10 -B 10 Alias
done
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
+ echo 'Docker Networks'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels