Linutronix / elbe

Embedded Linux Build Environment
https://elbe-rfs.org
GNU General Public License v3.0
163 stars 59 forks source link

Add development container for usage with Podman #317

Closed d4nuu8 closed 2 years ago

d4nuu8 commented 2 years ago

This patch adds a development container for usage with Podman.

This new container provides a few improvements compared to the already existing one:

Right now there is one downside of the new container: the container instance is started as rootful container in privileged mode.

Podman's rootless mode cannot be used, because the CAP_SYS_ADMIN capability is needed which is only granted in rootful mode.

The privileged mode is used right now, because I wasn't able the create and use an initvm without it. Dumb copying of the security settings from the existing container was not working unfortunately.

This is something which should be optimized in the future.

Signed-off-by: Daniel Braunwarth daniel@braunwarth.dev