Start the container based on the official jenkins image of docker

1. Start the container based on the official jenkins image of docker. The
running command is: docker run --name myjenkins -p 8080:8080 -v /var/ jenkins_home jenkins
docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
When running the docker run command, if there is no image locally, it will pull the image from DockerHub by default, cache the image locally, and then start the container created based on the image.
Use docker images to view image information:



use docker ps to view running container information:



access jenkins through the web interface:



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326399447&siteId=291194637