How to run bash as user root on alpine images with docker? su: must be suid to work properly
You can run a command within the container as root using --user root
. To get a shell:
docker exec -it --user root kong sh
You can run a command within the container as root using --user root
. To get a shell:
docker exec -it --user root kong sh