Docker Community Forums

Share and learn in the Docker community.

Unable to access exposed Weave network from the host machine


(Jens Ulrich Hjuler Pedersen) #1

Expected behavior

That we can access our containers on the weave network, by IP (
Simple routes and weave expose usually works really great.

Actual behavior

We’re unable to even create the routes that are needed to direct traffic into the VM, and then the Weave network.
Switching the network to nat-mode seems to get us a bit closer to what we want, but it’s not great.


$ pinata diagnose -u
OS X: version 10.11.4 (build: 15E65) version v1.11.1-beta11
Running diagnostic tests:
[OK]      docker-cli
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x
Docker logs are being collected into /tmp/20160511-092157.tar.gz
Most specific failure is: No error was detected
Your unique id is: F91C6360-B688-487E-ACB4-26EBC2C6F851
Please quote this in all correspondence.

Steps to reproduce the behavior

  1. Install Docker for Mac
  2. Install Weave:
    sudo curl -L -o /usr/local/bin/weave sudo chmod a+x /usr/local/bin/weave
  3. Setup Weave:
    weave launch weave expose
  4. Route traffic into the VM
    sudo route add -net <VM_IP> sudo route add -host <VM_IP>
  5. Run a container on Weave, and get it’s IP
    docker run --interactive --net=weave alpine sh hostname -i #
  6. While the container is running, run from the host:

(Blackxored) #2

I can also confirm this.