don't swallow error
Since sometimes the error is different from what we expect.
This commit is contained in:
1 parent
34db7044e4
commit
ad67dc5d07
1 file changed
+2
-2
@@ -212,8 +212,8 @@ connect_container_to_bridge() {
|
||||
}
|
||||
|
||||
launch() {
|
||||
if ! ip netns exec $NETNS ip link show eth0 >/dev/null 2>&1 ; then
|
||||
echo "No eth0 interface inside $CONTAINER_NAME container; perhaps you are running the docker daemon with container networking disabled (-b=none)." >&2
|
||||
if ! ip netns exec $NETNS ip link show eth0 >/dev/null ; then
|
||||
echo "Perhaps you are running the docker daemon with container networking disabled (-b=none)." >&2
|
||||
return 1
|
||||
fi
|
||||
connect_container_to_bridge &&
|
||||
|
||||
Reference in new issue
Block a user