Re:Killing ants with nuclear weapons
by alyandon on Thursday October 19, 2017 @03:07PM
(#15510693)
What's in a docker image is entirely up to the image creator. Docker containers don't necessarily have to use a complete userland + init system as a base.
[ Parent
| on HN ]
In practice, containers do have a shell, since a few things (Dockerfile RUN & CMD in non-exec mode, environment variable substitution, docker exec shell) dont work without it.
But you don't have to have all that, you can have just a single executable in the container, like here for example:
https://github.com/containous/traefik-library-image/blob/f24...