This directory contains files used in Moby/LinuxKit DockerCon 2017 keynote demos. They mostly serve as examples and probably need adjustments to your specific environment. # Prerequisites Most of the scripts/files assume you are on a Mac. - Recent Docker for Mac installed (We used 17.05.0-ce-rc1-mac8 from the edge channel) - For the GCP portion: `brew install google-cloud-sdk` - Infrakit: Clone [infrakit](https://github.com/docker/infrakit) and the [GCP plugin](https://github.com/docker/infrakit.gcp) for infrakit. The GCP plugin, needs to be v0.1. For each, `make build-in-container` and then copy the contents of `./build` somewhere in your path. # GCP Setup You probably want to change the project/zone ``` export CLOUDSDK_CORE_PROJECT=docker4x export CLOUDSDK_COMPUTE_ZONE=europe-west1-d gcloud auth login gcloud auth application-default login ``` You may also want to create ssh-keys and upload them. See the [Generating a new SSH key-pair section](https://cloud.google.com/compute/docs/instances/connecting-to-instance) # Expose VMs ports on localhost You can use a `socat` container to forward ports from the VM to localhost (via Docker for Mac), to make it easier to access some VMs. To build ``` (cd dockerfiles; docker build -t socat -f Dockerfile.socat .) ``` And then run: ``` docker run --rm -t -d -p 8080:8080 socat tcp-listen:6379,reuseaddr,fork tcp:192.168.65.100:6379 ``` This forwards local (host) port `6379` to `192.168.65.100:6379`, so if you start, say the `redis-os` image, run `moby run -ip 196.168.65.100 redis-os`.