Docker Community Forums

Share and learn in the Docker community.

When I execute docker run command or docker exec command, it doesnt ask for any password. Is there any way to ensure that when we enter docker exec or run command, it always asks for the password?

I have created a container image. Currently any linux user can use docker run or exec command to view the contents of the container. I am trying to see if I can enforce a password prompt every time someone enters docker run or exec command on the container