Description: My notes, things I have learned, and documentation I have created.
Run vs exec: docker exec is used to run commands in an already running container. docker run is used to create a new container that can be committed to create an updated container.
Here is how execute commands inside a docker container as root:
$ docker exec -u 0 -it runningcontainer bash