jeroenpeeters / docker-ssh

SSH Server for Docker containers ~ Because every container should be accessible
GNU General Public License v2.0
638 stars 89 forks source link

Execute commands/open shell as other user than root? #25

Closed BafDyce closed 6 years ago

BafDyce commented 7 years ago

When using docker-ssh, the opened shell on the target container is for the root-user. Is it somehow possible to change this, so that we can specify a user which the shell should be run as?

BafDyce commented 7 years ago

Shortly after posting this issue, I discovered that implementing this seems straightforward. Therefore I just did that. See #26