I run this command on my local machine docker run -d --name SonarQube -p 9000:9000 -p 9092:9092 sonarqube
This takes the image of the branch from dockerhub and then creates a container of the image.Now I want to make some changes in the file but there is no editor in the container.I tried installing vi using apt-get but it says I need to be the root user to execute the command and when I write sudo it says command not found.How do I install the editor in the container?
I run this command to install vim sudo apt-get install vim
And this is the error which I get
bash: sudo: command not found