Skip to content

Instantly share code, notes, and snippets.

@haisi

haisi/commands.sh

Created Mar 23, 2020
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@haisi haisi commented Mar 23, 2020

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

@haisi

This comment has been minimized.

Copy link
Owner Author

@haisi 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