Closed 574n13y closed 8 months ago
``` sudo apt-get update sudo apt-get install docker.io -y sudo usermod -aG docker $USER newgrp docker sudo chmod 777 /var/run/docker.sock ```
After the docker installation, we create a sonarqube container (Remember to add 9000 ports in the security group).
docker run -d --name sonar -p 9000:9000 sonarqube:lts-community
username admin password admin
sudo apt-get install wget apt-transport-https gnupg lsb-release -y wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list sudo apt-get update sudo apt-get install trivy -y
Task completed
Task 3 - Install Docker
After the docker installation, we create a sonarqube container (Remember to add 9000 ports in the security group).