document WEAVE_DOCKER_ARGS
This commit is contained in:
1 parent
b766ed8a32
commit
d4a2bc8024
1 file changed
+3
@@ -256,6 +256,9 @@ case "$COMMAND" in
|
|||||||
# (eth0, wlan0, etc) so the name becomes stable across host
|
# (eth0, wlan0, etc) so the name becomes stable across host
|
||||||
# restarts.
|
# restarts.
|
||||||
MACADDR=`cat /sys/class/net/$BRIDGE/address`
|
MACADDR=`cat /sys/class/net/$BRIDGE/address`
|
||||||
|
# Set WEAVE_DOCKER_ARGS in the environment in order to supply
|
||||||
|
# additional parameters, such as resource limits, to docker
|
||||||
|
# when launching the weave container.
|
||||||
CONTAINER=$(docker run --privileged -d --name=weave -p 6783:6783/tcp -p 6783:6783/udp $WEAVE_DOCKER_ARGS $IMAGE -name $MACADDR "$@")
|
CONTAINER=$(docker run --privileged -d --name=weave -p 6783:6783/tcp -p 6783:6783/udp $WEAVE_DOCKER_ARGS $IMAGE -name $MACADDR "$@")
|
||||||
with_container_netns attach $CONTAINER $IPADDR eth0
|
with_container_netns attach $CONTAINER $IPADDR eth0
|
||||||
echo $CONTAINER
|
echo $CONTAINER
|
||||||
|
|||||||
Reference in new issue
Block a user