I want to use ps / apt-get / curl /netstat commands in docker container, but when I use 'docker exec -it xxxx bash' to enter container, I found this is sonarqube user and can not su to root.
So, what is the password of the root in docker container?
just use $ docker exec -u root <container> <command>
Most helpful comment
just use
$ docker exec -u root <container> <command>