$> docker-machine create --driver virtualbox <your-machine-name>
$> docker-machine ls
OUTPUT:
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
<your-machine-name> - virtualbox Running tcp://192.168.99.100:2376 v17.06.0-ce
default - virtualbox Error Unknown machine does not exist
$> docker ps
this command give a error Cannot connect to the Docker daemon. Is the docker daemon running on this host? because your default machine is not working.you should set default machine to new created machine
$> eval $(docker-machine env <your-machine-name>)
$> docker-machine ls
OUTPUT:
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
<your-machine-name> * virtualbox Running tcp://192.168.99.100:2376 v17.06.0-ce
default - virtualbox Error Unknown machine does not exist
your machine is active and default, anymore you can connect this machine default.
Now, we look buildbot docs Buildbot Docker running
install docker-compose
$> pip install docker-compose
# clone the example repository
$> git clone --depth 1 https://github.com/buildbot/buildbot-docker-example-config
# Build the Buildbot container (it will take a few minutes to download packages)
$> cd buildbot-docker-example-config/simple
$> docker-compose up
if docker-compose up command give an error like this
Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 7, in <module>
from compose.cli.main import main
File "/Library/Python/2.7/site-packages/compose/cli/main.py", line 20, in <module>
from ..bundle import get_image_digests
File "/Library/Python/2.7/site-packages/compose/bundle.py", line 14, in <module>
from .service import format_environment
File "/Library/Python/2.7/site-packages/compose/service.py", line 42, in <module>
from .parallel import parallel_execute
File "/Library/Python/2.7/site-packages/compose/parallel.py", line 11, in <module>
from six.moves import _thread as thread
ImportError: cannot import name _thread
you can fix this error with above command
sudo pip install --ignore-installed six
OR
sudo -H pip install --ignore-installed six
now try same command docker-compose up