Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by garganzol on Saturday September 23, 2023 @06:24PM
(#37628106)
Website says that the OS does not have a shell. I cannot imagine a useful docker container without at least one shell script inside. So, if there is no shell, doesn't it mean that Bottlerocket is generally unusable except niche scenarios?
[ Parent
| on HN ]
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by CGamesPlay on Saturday September 23, 2023 @06:31PM
(#37628160)
The docker containers can have shell scripts inside. The host machine doesn't have a shell. You can bring a docker container with a shell, and run it privileged, to have a shell on the host machine.
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by perplexa on Saturday September 23, 2023 @07:15PM
(#37628535)
You can also launch an admin container and type `sudo sheltie` in it to get a root shell on the bottlerocket host OS if you need to debug things.
We've been using Bottlerocket together with its update operator on K8s for about a year now and we are really happy with it as it solves patch management by swapping out an immutable host OS image instead.
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by snowstormsun on Saturday September 23, 2023 @06:50PM
(#37628315)
It's not uncommon to have docker containers without a shell for security reasons. For example distroless.
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by seabrookmx on Sunday September 24, 2023 @12:44AM
(#37630197)
Or scratch containers, which work fine if you have a tool chain that can easily do static linking (GoLang, rust, for example).
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by jbnorth on Saturday September 23, 2023 @07:41PM
(#37628686)
The idea with Bottlerocket is that the host itself does not have a direct shell nor a way to access it via SSH or any other method. Instead this responsibility is delegated to the admin container which is where you would actually connect to via SSM/SSH. From here if you needed a root shell you would use the `sheltie` utility to do so.
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by ww520 on Saturday September 23, 2023 @08:07PM
(#37628834)
Here's a diagram on the subsystems. Bottlerocket has API that can be called from a shell in a container.
shells
|
containers
|
Bottlerocket
|
OS kernel
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by rezonant on Saturday September 23, 2023 @10:42PM
(#37629680)
Containers which contain shell scripts also contain the shell itself. It is not typical for the host machine's shell binary to be made available to containers running on the host.
Re:Bottlerocket – Minimal, immutable Linux OS with verified ...
by waljffflasjdf on Sunday September 24, 2023 @10:03AM
(#37633226)
Yes, It's for worker nodes in orchestration services (k8s, ecs).