Closed raneq closed 3 years ago
More drawbacks: lxc-autostart at boot does not start unprivileged containers, at least in Debian Stretch.
When systemd starts the lxc service, the lxc service calls lxc-autostart. But lxc-autostart is called as root, so even if you have “lxc.start.auto = 1” in your container config, your unprivileged container isn’t started.
If you login as the user that owns the container, and run lxc-autostart as that user, your container will start, assuming you did set its config to autostart.
source https://forum.level1techs.com/t/lxc-unprivileged-autostart-in-debian-stretch/123709/3
Yep, we can look into it. In any case keep in mind that this is just for development purposes, nothing that will be used in production.
@raneq can we close this issue? We're not using devenv
in a production environment.
@raneq can we close this issue? We're not using
devenv
in a production environment.
I didn't remember this was open. We already dismissed it because of your point.
Running containers as root was the only option some time ago, but since a while ago a safer option is available. This would add some steps to this script, but could do less assumptions of the host machine and improve security.
As they say in the docs:
However, this has some drawbacks:
There is also a good how-to in the debian wiki.