Docker, Threat Modeling, Interview Questions, Containers, Security.
chpasswd # Expose the SSH port EXPOSE 22 # Run SSH server CMD ["/usr/sbin/sshd", "-D"] Why This container Is Badly Configured: You should not run container as a root. you must not hard code the credentials in Dockerfile. You must not expose the SSH service. The user who is running the service is