Can't create a machine on fresh Docker installation
Expected behavior
docker-machine create --driver virtualbox default should create a docker machine instead..
Actual behavior
It tries to download boot2docker is v17.09.1-ce and fails "connection refused". So I haven't been able to create a machine. I just downloaded docker for the first time.
Information
Adolfos-MacBook-Pro:Desktop adolfoyanes$ docker-machine create --driver virtualbox default Running pre-create checks... (default) Unable to get the local Boot2Docker ISO version: Did not find prefix "-v" in version string (default) Default Boot2Docker ISO is out-of-date, downloading the latest release... (default) Latest release for github.com/boot2docker/boot2docker is v17.09.1-ce (default) Downloading /Users/adolfoyanes/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v17.09.1-ce/boot2docker.iso... Error with pre-create check: "Get https://github-production-release-asset-2e65be.s3.amazonaws.com/14930729/4662e3c6-dc0f-11e7-8ef7-898750671fde?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20171210%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171210T154130Z&X-Amz-Expires=300&X-Amz-Signature=94cc23e94d48d7b23881849e88fa3607d09c0fbeb5d5f28e85668ee57f67679d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dboot2docker.iso&response-content-type=application%2Foctet-stream: dial tcp [::1]:443: getsockopt: connection refused"
Steps to reproduce the behavior
- I downloaded Docker community edition
- download and install Virtual Machine 5
- Start Docker
- run on terminal docker-machine create --driver virtualbox default
Also, I tried to diagnose and upload issue and got
Docker for Mac: version: 17.09.0-ce-mac35 (69202b202f497d4b6e627c3370781b9e4b51ec78) macOS: version 10.13.1 (build: 17B1003) logs: /tmp/0D6B8C97-3D87-4A55-B033-8199AB63794B/20171210-114527.tar.gz [OK] db.git [OK] vmnetd [OK] dns [OK] driver.amd64-linux [OK] virtualization VT-X [OK] app [OK] moby [OK] system [OK] moby-syslog [OK] db [OK] env [OK] virtualization kern.hv_support [OK] slirp [OK] osxfs [OK] moby-console [OK] logs [OK] docker-cli [OK] menubar [OK] disk Failure: Could not upload diagnostic data to remote server (docker-diagnose exit code is 1)
You can also run diagnostics manually : $ /Applications/Docker.app/Contents/Resources/bin/docker-diagnose -u
Thanks for your report!
Since the bug seems to be in docker-machine specifically, could you file a report over here: https://github.com/docker/machine
May I ask what you're intending to use docker-machine with virtualbox on a Mac for? We're hoping to make regular docker running in Docker for Mac better so there's no need to manage the local VM yourself (no DOCKER_ environment variables etc). Are there particular problems with Docker for Mac that you need to work around by using docker-machine?
Thanks for your answer. I am new to Docker so the reason to use docker-machine with virtual box is just that I am following this tutorial http://blog.kaggle.com/2016/02/05/how-to-get-started-with-data-science-in-containers/
Sorry I forgot to mention that I downloaded boot2docker from source and created an iso image, put it in the folder where it looked for it and that why it returns
(default) Unable to get the local Boot2Docker ISO version: Did not find prefix "-v" in version string
the original error was
A-MacBook-Pro:Desktop user$ docker-machine create --driver virtualbox default Running pre-create checks... (docker2) No default Boot2Docker ISO found locally, downloading the latest release... (docker2) Latest release for github.com/boot2docker/boot2docker is v17.09.1-ce (docker2) Downloading /Users/adolfoyanes/.docker/machine/cache/boot2docker.iso from ... etc
Thanks for the update and the link to the tutorial. I think you can bypass the problem with docker-machine by ignoring all the docker-machine commands and skipping straight to the step
$ docker pull kaggle/python
Ports are now exposed by default on localhost, so anywhere you see $(docker-machine ip docker2), use localhost instead (for example in the kjupyter function in the .bashrc)
Here's what I got when I tried it on my machine:
docker pull kaggle/python
docker run -v $PWD:/tmp/working -w=/tmp/working -p 8888:8888 --rm -it kaggle/python jupyter notebook --no-browser --ip="*" --notebook-dir=/tmp/working --allow-root
(I had to add the --allow-root argument or jupyter refused to start). It then printed:
[C 16:43:02.915 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=b39714bbb9007eaf867894dc5f85e001d0457e8f71a86468
which seemed to work for me (although I had to use a text-based web-browser since I'm actually logged into this machine by ssh)
Great thanks. I'll give it a try
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked