Hacker News new | comments | ask | show | jobs | submit login

> 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/

You 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-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.

In 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.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact