User Check

Difficulty: Beginner

Question

How do you check which user is running inside a container without opening a shell?

Answer

Run `docker exec <id> whoami`.

Concepts covered

Security, User