Comment by lclc

2 days ago

One more reason to build your (own) Docker images on 'FROM scratch' (basically nothing).

No, the Alpine containers don't come with sshd preinstalled. You'd have to manually install via dockerfile and leave it unconfigured.

No one runs sshd in containers, at least I hope so. What would even be the point when you have docker/kubectl commands available?

  • Using LXC (not the same as docker) and running openssh inside the container.