Privileged shell access to a Docker Container
docker-compose exec --user root --privileged <container_name> bash
or
docker-compose exec --user root --privileged <container_name> sh
/bin/bash
or /bin/sh
Privileged shell access to a Docker Container
docker-compose exec --user root --privileged <container_name> bash
or
docker-compose exec --user root --privileged <container_name> sh
/bin/bash
or /bin/sh