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:

  • Create Docker container with both Java and Node.js
  • Build ASP.NET Core 1.1 preview4 project in Docker-image microsoft/aspnetcore-build:1.1.0-msbuild
  • How to make Nginx turn requests to the docker webapp in the same server
  • Docker machine is active, but shown as aborted in Virtual Box
  • Chef Test Kitchen verify file exists inside Docker container
  • Docker `docker pull` works only locally? [closed]
  • ┌─[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]

  • XDebug could not open the remote debug file '/var/log/apache2/xdebug_remote.log' in Docker
  • How to run docker image , take ssh of container and bind port to “49” in single cmd?
  • Setting AWS hazelcast cluster in WSO2 API manager cluster using docker
  • How to restore a .sql.gz dump on a Docker MySQL instance?
  • Mount data volume, then create symbolic link at container creation in docker
  • Docker refusing to run bash
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.