Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Last active August 10, 2018 19:45
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 wizardishungry/bbd8d0e11b099702d2efb53917694145 to your computer and use it in GitHub Desktop.
Save wizardishungry/bbd8d0e11b099702d2efb53917694145 to your computer and use it in GitHub Desktop.
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
# 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