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

The host environment you're running Docker in still needs a services to be executed at boot.



I just ran `docker run -it alpine /bin/sh` and when inside, I ran top. It looks like `/bin/sh` ran as PID 1. No init, just sh (busybox in this case).

Edit: Ah you meant the host OS. I can't reply to wezm down below for whatever reason (there's no "reply" button), so I'll just edit this to say I didn't realise that he was using alpine as your host OS as well. I haven't seen many people running it outside Docker, so it's quite interesting.


There's no init and only one process by default in alpine's docker image but you can add them and run more processes if you want.


He means the host OS.


Host operating systems need a init, of course. I was just startled by the irrelevant discussion on alpine's init system when it isn't involved anywhere.


Yeah my host is running Alpine as well the containers so it's init needs to start docker, cron, etc.




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

Search: