toolbox icon indicating copy to clipboard operation
toolbox copied to clipboard

Implements executing the init system

Open mildred opened this issue 5 years ago • 8 comments

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.

mildred avatar May 27 '19 12:05 mildred

Updated the PR to make this dependent upon the --init command-line option

mildred avatar May 27 '19 13:05 mildred

Any updates? Is that a viable approach? Would that possibly get merged if the conflicts get resolved?

ibotty avatar Jun 19 '19 07:06 ibotty

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.

mildred avatar Jul 19 '19 08:07 mildred

I'm using containers created by this PR daily and it works really great.

mildred avatar Aug 28 '19 08:08 mildred

Perhaps the use-case for running an RDBMs is too high-minded. From toolbox, I just don't want to have to run:

  1. emacs --daemon=foo
  2. emacsclient --socket-name=foo --create-frame &

This seems to be able to satisfy the systemd requirements... What's holding up the merge?

mjburling avatar Nov 07 '19 19:11 mjburling

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)

mildred avatar Nov 28 '19 09:11 mildred

Sorry, this is no longer working with the newer version. And having journald mounted from within the container does not work.

mildred avatar Nov 28 '19 11:11 mildred

Progress?

bam80 avatar May 02 '24 22:05 bam80