FROM scratch
COPY hello /
CMD ["/hello"]
This just raises the question of what the point of containerisation for applications with no dependancies. FROM scratch
COPY hello /
CMD ["/hello"]
This just raises the question of what the point of containerisation for applications with no dependancies.- Consistent packaging/execution environment. containers are delivered and executed in a standard way regardless of target env.
- A level of sandboxing from the underlying host. Things like automatically applied Linux namespaces and dropped capabilities if you use Docker/runc, and then more sandboxing automatically applied if you use things like gVsior or firecracker.
2) Sandboxing can be done using a systemd service configuration to a large extent.
Sure, if all you have are Go binaries, you can just run those directly, but if you have some Go binaries and also some Python applications and also some Java beans, you stuff them all into containers and then they can be deployed with the same tooling.