Skip to content

Instantly share code, notes, and snippets.

@haisi
Created March 23, 2020 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haisi/02c2ef35f793572ef93172df69f1b0c9 to your computer and use it in GitHub Desktop.
Save haisi/02c2ef35f793572ef93172df69f1b0c9 to your computer and use it in GitHub Desktop.
docker on windows 8.1
# Create the VirtualBox VM running a mini Linux with Docker (name 'default')
docker-machine create --driver=virtualbox
docker-machine create --driver virtualbox --virtualbox-hostonly-cidr "10.0.0.1/24" default
# See all machines
docker-machine ls
docker-machine env default
eval "$(docker-machine env default)"
@haisi
Copy link
Author

haisi commented Mar 23, 2020

If your certificates have expired, run: rm -r ~/.docker/machine/certs

@haisi
Copy link
Author

haisi commented Mar 23, 2020

If you get

ERROR: SSL error: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)

Run either:
set "export COMPOSE_TLS_VERSION=TLSv1_2"
export COMPOSE_TLS_VERSION=TLSv1_2

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