brikis98 / docker-osx-dev

A productive development environment with Docker on OS X
http://www.ybrikman.com/writing/2015/05/19/docker-osx-dev/
MIT License
1.43k stars 106 forks source link

boot2docker is still being used. Switch to Docker toolbox? #132

Open ngduc opened 8 years ago

ngduc commented 8 years ago

I got a warning when running this:

test-docker-osx-dev $ docker-osx-dev

2015-11-04 10:39:02 [INFO] Using default sync paths: . /usr/local/bin/docker-osx-dev: line 958: greadlink: command not found 2015-11-04 10:39:02 [INFO] Complete list of paths to sync: 2015-11-04 10:39:02 [INFO] Using default exclude paths: .git 2015-11-04 10:39:02 [INFO] Complete list of paths to exclude: .git 2015-11-04 10:39:02 [INFO] Complete list of paths to include: 2015-11-04 10:39:02 [INFO] Starting docker-osx-dev file syncing 2015-11-04 10:39:02 [INFO] Initializing Boot2Docker VM

WARNING: The 'boot2docker' command line interface is officially deprecated.

Please switch to Docker Machine (https://docs.docker.com/machine/) ASAP.

Docker Toolbox (https://docker.com/toolbox) is the recommended install method.

Thanks.

brikis98 commented 8 years ago

We do have experimental support for docker-machine, as explained in the README. At some point, we should make that the default, though that would be a backwards incompatible change. Perhaps we should detect the docker version and decide based off of that?

ain commented 8 years ago

Docker Machine works perfectly fine with docker-osx-dev and we've been constantly upgrading the stables with Docker Toolbox. Current stable we run in production for more than a month now is 1.8.3. Integration tests against Docker Machine are also in progress.

As for your problem, please check against versions you're running and that the boot2docker and VirtualBox versions are actually up to date. I've seen this problem happening in the team as well, but it has always been environment setup mishap.

ryanmcgrath commented 8 years ago

Poking this issue, as this is somehow still the best method for working with Docker on OS X. Killing lines 745-747 had no ill effect on anything for me, and in fact helped by stopping the Docker for Mac beta and homebrew's equivalents from colliding.

745   # brew_install "boot2docker" "Boot2Docker" "type boot2docker" false
746   # brew_install "docker-compose" "Docker Compose" "type docker-compose" false
747   # brew_install "docker-machine" "Docker Machine" "type docker-machine" false