Skip to content

Instantly share code, notes, and snippets.

@SebAshton
Last active July 29, 2016 15:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SebAshton/81b60424cc3eaead2d3d67fb183eaf37 to your computer and use it in GitHub Desktop.
Save SebAshton/81b60424cc3eaead2d3d67fb183eaf37 to your computer and use it in GitHub Desktop.

Yay Docker for Mac is here! As of last night we all - not just Rory 'Bleeding Edge' MacDonald - can run Docker Natively on OSX without VB.

To update is simple... Install this DMG. If you want to preserve any db's export them first!

It will be super helpful an pull in your default box into your new set up (if you want it to).

Then unset the docker-machine envs:

unset DOCKER_TLS_VERIFY
unset DOCKER_CERT_PATH
unset DOCKER_MACHINE_NAME
unset DOCKER_HOST

To double check everything is in order run:

docker --version

docker-compose --version

This should return

Docker version 1.12

docker-compose version 1.8.0

If these values aren't outputted you'll have to update you docker/docker-compose symlinks in /usr/local/bin to point to /Applications/Docker.app/Contents/Resources/bin/

ln -s /usr/local/bin/docker /Applications/Docker.app/Contents/Resources/bin/docker
ln -s /usr/local/bin/docker-compose /Applications/Docker.app/Contents/Resources/bin/docker-compose

If you want to remove the Docker Toolbox follow the uninstallation guide here. Just skip step 4.

To access your dockers all normal commands work docker-compose up etc, but rather than accessing it over an IP its now on localhost:<your_app_portz> so update you hosts files... And your SequelPro connection.

Gotchas

  • If you are a fish user that evaluates docker-machine env on start up remove this line.
  • If you did keep docker toolbox vm's you can re-run the eval (docker-machine env default) and you can then manage them.

Bonus

Install Kitematic to see all your containers in a nice GUI.

Click on the "Docker Whale Icon" in the toolbar > Click open Kinematic > Install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment