moby: Unable to link to postgres container with docker-engine 1.7.0 on Fedora 22
Description of problem:
I am using the recommended Fedora 22 docker-engine (docker-engine-1.7.0-1.fc22.x86_64.rpm) from the Fedora installation page.
Following the instructions on the Dockerizing Postgresql and Linking Containers docs pages I am unable to connect to a postgres container from the simple bash container via the psql command. I received the error:
psql: could not connect to server: No route to host
Is the server running on host "172.17.0.8" and accepting
TCP/IP connections on port 5432?
docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): linux/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
OS/Arch (server): linux/amd64
docker info
Containers: 1
Images: 16
Storage Driver: devicemapper
Pool Name: docker-253:1-1319522-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 744.9 MB
Data Space Total: 107.4 GB
Data Space Available: 46.61 GB
Metadata Space Used: 1.458 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.146 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.93 (2015-01-30)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.6-300.fc22.x86_64
Operating System: Fedora 22 (Twenty Two)
CPUs: 4
Total Memory: 7.687 GiB
Name: *****
ID: NNLY:SH32:E4NY:4YV3:BQEJ:S5MV:QVOD:BQXZ:ED6T:H37F:4T5N:KABU
uname -a
Linux ***** 4.0.6-300.fc22.x86_64 #1 SMP Tue Jun 23 13:58:53 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Environment details
Physical machine, Lenovo Thinkpad X220
How reproducible
Every time
Steps to Reproduce
- Install docker-engine 1.7.0 as per the instructions for Fedora 22 on installation page
- Follow the instructions on the Dockerizing PostgreSQL page
Actual Results
Unable to connect to postgres container:
psql: could not connect to server: No route to host
Is the server running on host "172.17.0.8" and accepting
TCP/IP connections on port 5432?
Expected Results
Should connect to the postgres container and display the psql prompt.
Additional info
Tested on Mac OSX (Yosemite) with boot2docker 1.7.0 and Fedora 22 docker 1.6.0 from the fedora repo (installed using sudo dnf install docker
) and in both cases it works fine.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 75 (40 by maintainers)
@trevorjay
works for me.