How to (su) switch user on amazonlinux docker image?

  amazon, bash, docker, linux, security

I am trying to secure amazonlinux docker image.

I know I can use docker USER command.

But the thing is when developing I would like to login to image and su switch user in order to try out how image will work but there is no su command in amazonlinux.

How to logon to docker image and change user using bash commands ?

Source: Docker Questions

LEAVE A COMMENT