Docker: passwordless sudo acces in regular shell

This is how you override the user group. The only requirement for the passwordless sudo is the wheel group, but if you specify the group after the username, the user will get that group only. Try this:

docker exec -it -u userdev container_name /bin/bash
1 Like