Docker Community Forums

Share and learn in the Docker community.

Make a SSH User for 1 Container?


(Diezcode) #1

Hello,
I’m wan’t to make a ssh user that only can join directly in 1 container that I have.
Is this possible? How can I do that?

thanks-


(Nathan Le Claire) #2

Why do you want to do this? If you want to spawn a shell in a container, why not use docker exec?


(Diezcode) #3

I want to make a user only for 1 docker container, for example a employee that have access only in 1 container not in all.