docker exec bash as root code example Example: docker exec bash root user docker exec -u root -it /bin/bash