After upgrading to docker 1.8.2, when the container is first created its NetworkMode is empty. Only after starting does it get its value. I'm assuming both this and #23 are due to the network system changes, not sure if this is a docker bug, or if we should check for "" NetworkMode. In my fork, i changed connectable to detect "start" instead of "create" which fixes this bug, and has the advantage of working through container restarts.
After upgrading to docker 1.8.2, when the container is first created its NetworkMode is empty. Only after starting does it get its value. I'm assuming both this and #23 are due to the network system changes, not sure if this is a docker bug, or if we should check for "" NetworkMode. In my fork, i changed connectable to detect "start" instead of "create" which fixes this bug, and has the advantage of working through container restarts.