Last active
August 10, 2018 19:45
-
-
Save wizardishungry/bbd8d0e11b099702d2efb53917694145 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GOOS=openbsd GOARCH=amd64 go get github.com/docker/cli/cmd/docker | |
GOOS=openbsd GOARCH=amd64 go get github.com/docker/machine/cmd/docker-machine | |
doas sysctl net.inet.ip.forwarding=1 | |
wget "https://github.com/boot2docker/boot2docker/releases/download/v18.06.0-ce/boot2docker.iso" | |
vmctl create disk.img -s 4.5G | |
doas vmctl start docker -d ./boot2docker.iso -d ./disk.img -m 1024M -L -c | |
# -c is for console | |
ssh docker@100.64.3.3 | |
# pw is tcuser | |
export DOCKER_HOST=tcp://100.64.3.3 | |
#certs are fucked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NAT for the VMs | |
match out on egress from 100.64.0.0/10 to any nat-to (egress) | |
pass in proto udp from 100.64.0.0/10 to any port domain rdr-to 1.1.1.1 port domain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment