Complete the command to pull the official Jenkins Docker image.
docker [1] jenkins/jenkins:ltsThe docker pull command downloads the Jenkins image from Docker Hub.
Complete the command to start a Jenkins container named 'myjenkins' mapping port 8080.
docker run -d --name myjenkins -p [1]:8080 jenkins/jenkins:lts
Port 8080 on the host is mapped to port 8080 in the container for Jenkins web access.
Fix the error in the command to run Jenkins with persistent data storage.
docker run -d --name jenkins -p 8080:8080 -v [1]:/var/jenkins_home jenkins/jenkins:lts
The host directory /data/jenkins is commonly used to store Jenkins data persistently.
Fill both blanks to run Jenkins with environment variable and restart policy.
docker run -d --name jenkins -p 8080:8080 -e [1]=-Djenkins.install.runSetupWizard=false --restart=[2] jenkins/jenkins:lts
JAVA_OPTS=-Djenkins.install.runSetupWizard=false disables the initial setup wizard, and --restart=always restarts the container automatically.
Fill all three blanks to create a Docker command that runs Jenkins with a volume, environment variable, and restart policy.
docker run -d --name jenkins -p [1]:8080 -v [2]:/var/jenkins_home -e [3]=-Djenkins.install.runSetupWizard=false --restart=always jenkins/jenkins:lts
Port 8080 is mapped, /data/jenkins stores data persistently, and JAVA_OPTS=-Djenkins.install.runSetupWizard=false disables the initial setup wizard.