From 397f1398eec2cdfbbc81640443db34ecfd05efcc Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Thu, 16 Jul 2015 16:14:08 +0100 Subject: [PATCH] updating boot2docker docs for proxy --- site/boot2docker.md | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/site/boot2docker.md b/site/boot2docker.md index 9835cb48..90e55bf2 100644 --- a/site/boot2docker.md +++ b/site/boot2docker.md @@ -7,23 +7,29 @@ layout: default If you are running Docker inside the Boot2Docker VM, e.g. because you are on a Mac, then the following changes are required to the weave -instructions: +instructions. First, we need to get Boot2Docker running: + + host1$ boot2docker init + host1$ boot2docker start + host1$ eval "$(boot2docker shellinit)" Assuming you have fetched the 'weave' script via curl or similar, and -it is in the current directory, transfer it to the Boot2Docker VM and -make it executable like this: +it is in the current directory, launch weave on the Boot2Docker VM and +configure our shell. Because Boot2Docker uses TLS, we have to pass a +few extra options when launching the docker API proxy: - host1$ boot2docker ssh "cat > weave" < weave - host1$ boot2docker ssh "chmod a+x weave" + host1$ ./weave launch + host1$ ./weave launch-dns + host1$ ./weave launch-proxy --tls \ + --tlscacert /var/lib/boot2docker/tls/ca.pem \ + --tlscert /var/lib/boot2docker/tls/server.pem \ + --tlskey /var/lib/boot2docker/tls/serverkey.pem + host1$ eval "$(./weave proxy-env)" -Then, if we were trying to create the same containers as in the first -example above, the 'launch' command would be run like this: +Now, we can use the docker command to run our containers, as shown in +the [proxy documentation](proxy.html): - host1$ boot2docker ssh "sudo ./weave launch" - -and the 'run' command like this: - - host1$ C=$(boot2docker ssh "sudo ./weave run 10.2.1.1/24 -t -i ubuntu") + host1$ docker run -it ubuntu For more information about how to access services running in Boot2Docker from the host or other machines (i.e. outside of the weave