3 ms·
> I do something similar but with a VM instead of a Docker container and it works well. The one thing I like about using a VM is it runs full Ubuntu with an ini
by u801e 8y ago
> I do something similar but with a VM instead of a Docker container and it works well. The one thing I like about using a VM is it runs full Ubuntu with an init system
You could get that with LXC/LXD containers [1].
[1] https://linuxcontainers.org/lxd/introduction/ https://linuxcontainers.org/lxd/introduction/
- lscotte 8y agoYou can even get it with straight up Docker, as long as both the host and container are running a new enough kernel+docker. You can even run unprivileged containers: https://developers.redhat.com/blog/2016/09/13/running-systemd-in-a-non-privileged-container/ https://developers.redhat.com/blog/2016/09/13/running-system... - I did this with Ubuntu (Bionic and Artful, but I can't remember if it could work older versions, although this hardly new per the date on the blog). Of course this assumes you are running Linux everywhere and not some proprietary, limiting, OS.
- u801e 8y agoIn my experience, I was not able to run systemctl restart some.service in a docker container. This wasn't an issue in a LXC container.