Re: Init systems and docker

2019-10-28 Thread John Goerzen
On Fri, Oct 11 2019, Scott Kitterman wrote: > I have been told by docker users (I'm not one) that systemd as provided on > Debian can't be used in docker. I have no idea if that's true or not. I try > really hard to know as little about init systems as possible and trust our > maintainers who

Re: Init systems and docker

2019-10-14 Thread Anuradha Weeraman
On Fri, Oct 11, 2019 at 06:49:37PM -0400, Scott Kitterman wrote: > I have been told by docker users (I'm not one) that systemd as provided on > Debian can't be used in docker. I have no idea if that's true or not. I try > really hard to know as little about init systems as possible and trust

Re: Init systems and docker

2019-10-14 Thread Jose-Luis Rivas
On 10/14/19 05:49, Marc Haber wrote: > > So, +1 to be able to run a default systemd-based Debian with systemd > as pid 1 in a docker container. Hi Marc, you can do this already. As explained somewhere else in the thread, just run docker run with the --privilege flag. Cheers. -- __.

Re: Init systems and docker

2019-10-14 Thread Marc Haber
On Fri, 11 Oct 2019 19:25:54 -0400, Jose-Luis Rivas wrote: >There's not much sense in using systemd inside a docker container, to be >honest. Generally you want to launch your service as custom as possible >and the ENTRYPOINT allows you to do just that. Docker already sends the >SIGKILL to the

Re: Init systems and docker

2019-10-13 Thread Bernd Zeimetz
Hi Tomas! On 10/12/19 7:00 PM, Tomas Pospisek wrote: > I have to say that I disagree with you and many others on this thread. > Maybe Docker was *meant* for single application containers, I do not know. In theory, yes. > However running a service ("a single application") often implies >

Re: Init systems and docker

2019-10-12 Thread Jose-Luis Rivas
Hello Tomas! On 10/12/19 13:00, Tomas Pospisek wrote: > I have to say that I disagree with you and many others on this thread. > Maybe Docker was *meant* for single application containers, I do not know. > > However running a service ("a single application") often implies > surrounding services.

Re: Init systems and docker

2019-10-12 Thread Simon Richter
Hi, On 12.10.19 19:00, Tomas Pospisek wrote: > However running a service ("a single application") often implies > surrounding services. F.ex. you want logs to be saved? Maybe you need to > run cron or at? Maybe you want to get notified about problems, stats, > whatever via email? That's the

Re: Init systems and docker

2019-10-12 Thread Sven Bartscher
Hi, Am 12.10.19 um 19:00 schrieb Tomas Pospisek: > However running a service ("a single application") often implies > surrounding services. F.ex. you want logs to be saved? Maybe you need to > run cron or at? Maybe you want to get notified about problems, stats, > whatever via email? > > Now you

Re: Init systems and docker

2019-10-12 Thread Tomas Pospisek
Hi Debianistas! Am 12.10.19 um 01:06 schrieb Ben Hutchings: > On Fri, 2019-10-11 at 18:49 -0400, Scott Kitterman wrote: >> I have had bugs filed against more than one package I maintain regarding >> issues >> with sysv init scripts when used in docker. >> >> I have been told by docker users

Re: Init systems and docker

2019-10-12 Thread Simon McVittie
On Fri, 11 Oct 2019 at 18:49:37 -0400, Scott Kitterman wrote: > I have been told by docker users (I'm not one) that systemd as provided on > Debian can't be used in docker. I have no idea if that's true or not. It isn't, as noted elsewhere on this thread. However, my understanding is that they

Re: Init systems and docker

2019-10-12 Thread Mathieu Parent (Debian)
Hello, Le sam. 12 oct. 2019 à 01:26, Jose-Luis Rivas a écrit : > > Hello Scott, > > On 10/11/19 18:49, Scott Kitterman wrote: [...] > In short: they should not be using systemd inside the container and if > they want to the issue is not on how Debian ships systemd but that they > are not using

Re: Init systems and docker

2019-10-11 Thread Pirate Praveen
On Fri, Oct 11, 2019 at 18:49, Scott Kitterman wrote: If it is true, then to the extent we want Debian to be useful for docker does that mean we ought to maintain sysv init scripts? If it's not true, can someone point me to documentation that explains using systemd on Debian in docker?

Re: Init systems and docker

2019-10-11 Thread Russell Stuart
On Fri, 2019-10-11 at 19:25 -0400, Jose-Luis Rivas wrote: > There's not much sense in using systemd inside a docker container, to > be honest. To put it another way, in the container world the init system belongs outside of the container. That is because the closest thing equivalent to a

Re: Init systems and docker

2019-10-11 Thread Jose-Luis Rivas
Forgot to add that docker has a recommended way of running multiple processes per container and it actually avoids init systems launching its own micro init: https://docs.docker.com/config/containers/multi-service_container/ On 10/11/19 19:25, Jose-Luis Rivas wrote > Here's a little bit of

Re: Init systems and docker

2019-10-11 Thread Jose-Luis Rivas
Hello Scott, On 10/11/19 18:49, Scott Kitterman wrote: > I have had bugs filed against more than one package I maintain regarding > issues > with sysv init scripts when used in docker. > > I have been told by docker users (I'm not one) that systemd as provided on > Debian can't be used in

Re: Init systems and docker

2019-10-11 Thread Ben Hutchings
On Fri, 2019-10-11 at 18:49 -0400, Scott Kitterman wrote: > I have had bugs filed against more than one package I maintain regarding > issues > with sysv init scripts when used in docker. > > I have been told by docker users (I'm not one) that systemd as provided on > Debian can't be used in