Docker on RHEL 7 in AWS can’t pull images

We’re looking to incorporate docker on our project and I’m having some difficulty.

I installed Docker via the instructions here: and had no problems. However, when I try to pull any images from docker hub, it just hangs and nothing ever happens:

  • docker-compose dev/live containers with different packages
  • Does the disk property size you define in Marathon include the size of the docker image?
  • docker container can't use `service sshd restart`
  • Can docker containers be connected to SRIOV virtual functions?
  • Subversion export/checkout in Dockerfile without printing the password on screen
  • How to add class A ip subnet to docker0 bridge
  • ┌─[user@hostname]─(~)
    └─[11:53]$ docker pull alpine:latest

    Here’s my docker version info:

    └─[11:53]$ docker version
     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
     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:

    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 TCP_MISS/200 3250 CONNECT - HIER_DIRECT/ -
    1467475616.415     35 TCP_MISS/200 4444 CONNECT - HIER_DIRECT/ -

    I’m running out of things to try here. Any help would be greatly appreciated.


    Got a new error! After tweaking the squid proxy configuration, I now get this error when attempting to pull an image:

    └─[15:15]$ sudo docker pull alpine
    Using default tag: latest
    Pulling repository
    Error while pulling image: Get Service Unavailable

    Here’s the output of ping:

    └─[15:15]$ ping
    PING ( 56(84) bytes of data.
    --- ping statistics ---
    3 packets transmitted, 0 received, 100% packet loss, time 1999ms

    And wget can download a json file from the url in the docker error message:

    └─[15:17]$ wget
    --2016-07-02 15:17:20--
    Resolving (,,
    Connecting to (||:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [application/json]
    Saving to: ‘images’
        [ <=>                                   ] 6,900       --.-K/s   in 0s
    2016-07-02 15:17:20 (185 MB/s) - ‘images’ saved [6900]

  • How do I mount a host directory as a volume in docker compose
  • npm install receiving type error when using docker
  • Optional container in task definition in cloudformation tempalte
  • Docker image push over SSH (distributed)
  • Docker deamon config path under mac os
  • Can't connect to Cassandra Docker Container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.