Docker-sonarqube: What is the password of the root in docker container?

Created on 3 Mar 2020  路  1Comment  路  Source: SonarSource/docker-sonarqube

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?

Most helpful comment

just use $ docker exec -u root <container> <command>

>All comments

just use $ docker exec -u root <container> <command>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

longquan7 picture longquan7  路  7Comments

JoeyHoutenbos picture JoeyHoutenbos  路  3Comments

olderzhou picture olderzhou  路  9Comments

jcdalton2201 picture jcdalton2201  路  6Comments

jasonrhaas picture jasonrhaas  路  9Comments