28 ms·
The host environment you're running Docker in still needs a services to be executed at boot.
by unk 8y ago
The host environment you're running Docker in still needs a services to be executed at boot.
- adtac 8y agoI 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.
- Scarbutt 8y agoHe means the host OS.
- krferriter 8y agoThere'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.