I've docker container running on a machine, in order to go inside the container I used command -
docker exec -it <container-id> bash
but when I run whoami
here it returns root
But I want to perform actions with different user hence to login inside container with different user.
How can I login with different user inside container?