Docker hangs on the RUN command OSX

I have been learning docker using the docker docs, and first encountered a problem in the quick start guide to Django. The program would build normally up until the the second to last command. Here is my dockerfile and the output:

FROM python:3.5.2
ENV PYTHONUNBUFFERED 1
WORKDIR /code
ADD requirements.txt /code
RUN pip3 install -r requirements.txt
ADD . /code

Then when I run:

  • Docker upgrade issue cent os 6.5
  • How to override default docker container command or revert to previous container state?
  • Is it possible to import OSM data from inside psql?
  • Set values on image build for a Docker container
  • New device node created on host does not get reflected in Docker container when using --device flag
  • docker-machine boot2docker root password
  • docker-compose run web django-admin startproject src .
    

    I get the whole thing built and then it hangs:

    Installing collected packages: Django, psycopg2
    Running setup.py install for psycopg2: started
    Running setup.py install for psycopg2: finished with status 'done'
    Successfully installed Django-1.10.5 psycopg2-2.6.2
    

    So since I don’t have experience with compose I tried the most basic docker build that included a dockerfile. This one also got hung up.

    FROM docker/whalesay:latest
    RUN apt-get -y update && apt-get install -y fortunes
    CMD /usr/games/fortune -a | cowsay
    

    And this is the last terminal line before the hang.

    Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
    

    According to the tutorial this occurs in the same spot. The second to last command, which happens to also be RUN.

    Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
    ---> dfaf993d4a2e
    Removing intermediate container 05d4eda04526
    [END RUN COMMAND]
    

    So thats why I think its in the RUN command, but I’m not sure why or how to fix it. Does anyone know why this might be occurring? I am using a Macbook Pro 8.1 running OSX EL CAPITIAN version 10.11.6 and Docker version 1.13.1, build 092cba3

  • How to modify a config file of tomcat docker container using ansible?
  • How to get a docker history from an image that has not been pulled yet?
  • How to specify docker image path on command line without editing configuration setting?
  • Changing Docker IP to 10.10.x.x
  • How to debug seg fault in docker container?
  • Can I use LXD image to create Docker container and/or vice versa?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.