Skip to content

DNS stopped working after 1.12.3 #1548

@yaitskov

Description

@yaitskov

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions