toolbox
toolbox copied to clipboard
Implements executing the init system
Add the toolbox recreate sub command
The recreate command is saving the current container as a new image, removing the container, and recreating a new container with all the updated options.
Implements debarshiray/toolbox#143
Allow to run systemd within the container
debarshiray/toolbox#176
Add an --init
option to create or recreate a container with a split PID namespace. In such circumstances, the /sbin/init
is executed instead of sleep
. Toolbox shells are then able to access systemd using systemctl
.
Updated the PR to make this dependent upon the --init
command-line option
Any updates? Is that a viable approach? Would that possibly get merged if the conflicts get resolved?
Just updated this PR on top of latest master, and removed the recreate command to simplify this PR.
I'm using this feature and it works well.
I'm using containers created by this PR daily and it works really great.
Perhaps the use-case for running an RDBMs is too high-minded. From toolbox, I just don't want to have to run:
-
emacs --daemon=foo
-
emacsclient --socket-name=foo --create-frame &
This seems to be able to satisfy the systemd requirements... What's holding up the merge?
Just rebased my branch to latest master. If someone can take a look at it, I would be grateful. The change is really light (just replace the sleep by init and change just a few container options : unshare pid namespace, host dbus and mount /run as tmpfs)
Sorry, this is no longer working with the newer version. And having journald mounted from within the container does not work.
Progress?