Last active
February 21, 2017 13:24
-
-
Save swyngaard/ac0382810bf57ef7296914e41d950488 to your computer and use it in GitHub Desktop.
Allow user to start unprivileged LXC containers from the current bash session in Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable the ability to start containers in the current shell session: | |
./start.sh | |
Alternatively, execute the following set of commands: | |
$ sudo cgm create all $USER | |
$ sudo cgm chown all $USER $(id -u $USER) $(id -g $USER) | |
$ cgm movepid all $USER $$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo cgm create all $USER | |
sudo cgm chown all $USER $(id -u $USER) $(id -g $USER) | |
cgm movepid all $USER $PPID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment