Skip to content

Commit

Permalink
Move VM into container network namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rmohr committed Jan 19, 2017
1 parent dd5e93f commit feafe1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/virt-launcher/qemu-kube
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ echo "$CMD" >> $LOG
# Don't close file descriptors bigger than 10000 to allow passing tap device fds
# Start the qemu process in the cgroups of the docker container
# to adher the resource limitations of the container.
sudo -C 10000 bash -c -- "cgclassify -g ${CGROUPS}:system.slice/docker-$CONTAINER_ID.scope --sticky \$\$ && nsenter -t $CONTAINER_PID -p $CMD"
sudo -C 10000 bash -c -- "cgclassify -g ${CGROUPS}:system.slice/docker-$CONTAINER_ID.scope --sticky \$\$ && nsenter -t $CONTAINER_PID -n -p $CMD"

0 comments on commit feafe1c

Please sign in to comment.