Unable to install packages using Docker on Mac

This morning I’ve started playing with Docker, so installed boot2docker on my Mac.

All seemed to be going well, following the Working with Docker Images documentation until I tried to create a Dockerfile to install the ruby gems.

  • Jenkins Docker plugin is showing offline
  • docker/boot2docker in amazon ec2
  • The right way to move a data-only docker container from one machine to another
  • Docker Stack deployment app does not work
  • Running Boot2Docker on windows, can't connect to the VM ip
  • Vagrant ssh to Docker container
  • I spent a long time banging my head against the wall as to why it couldn’t connect to install the gems… then I eventually worked it out, so adding this here in case anyone else has this problem in future, as there wasn’t anything on Google about it.

  • Select Node variables LISTEN and SERVER through a docker image
  • Why docker login command saves unencrypted password on my computer?
  • SSH Agent forwarding inside docker compose container
  • Pull ssh keys in docker container at runtime
  • Is it possible to use docker with jrebel or dcevm
  • can not use rabbitmq config in docker build OS X
  • One Solution collect form web for “Unable to install packages using Docker on Mac”

    Turns out that, because my internet bombed out during the apt-get update command, it didn’t complete the update, however running it again, docker was using the cached (incomplete) data, and so if didn’t work.

    The fix… Run the docker build without the cache using the command…

    docker build -no-cache --tag="<vendor>/<build>:<tag>" .
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.