- Kill all containers for a given
<image-name>
docker rm $(docker stop $(docker ps -a -q --filter ancestor=<image-name> --format="{{.ID}}"))
- Login to a docker container
docker exec -it container_id /bin/bash
- Login to a docker container as root
docker exec --user 0 -it container_id /bin/bash