We’re looking to incorporate docker on our project and I’m having some difficulty.
I installed Docker via the instructions here: https://docs.docker.com/engine/installation/linux/rhel/ and had no problems. However, when I try to pull any images from docker hub, it just hangs and nothing every happens:
┌─[user@hostname]─(~) └─[11:53]$ docker pull alpine:latest
Here’s my docker version info:
┌─[user@hostname]─(~) └─[11:53]$ docker version Client: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:23:11 2016 OS/Arch: linux/amd64 Server: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:23:11 2016 OS/Arch: linux/amd64
This is a redhat 7.2 instance in a VPC. I’m using another rhel 7.2 instance to handle NAT through iptables. This issue is the first connectivity problem I’ve had.
I read elsewhere that specifying an http proxy would solve the issue, so I set up a squid proxy on my nat server, but to no avail. I followed the instructions here to set the proxy for docker to use: https://docs.docker.com/engine/admin/systemd/#/http-proxy
The proxy is getting the requests, but docker still can’t pull any images. Here’s the out put of my squid logs:
1467475616.376 110 10.0.0.50 TCP_MISS/200 3250 CONNECT registry-1.docker.io:443 - HIER_DIRECT/126.96.36.199 - 1467475616.415 35 10.0.0.50 TCP_MISS/200 4444 CONNECT auth.docker.io:443 - HIER_DIRECT/188.8.131.52 -
I’m running out of things to try here. I’d really like to use docker for this project, but I only have so much time I can spend working on this. Any help would be greatly appreciated.