In using linux environment docker build jenkins service --1

1:docker search jenkins

   Find mirrored jenkins

2:docker pull jenkins 

  The name of the mirrored pull jenkins local

3:docker run -d --name jenkins -p 8080:8080 -rm -v  jenkins-data:/var/jenkins_home jenkins

        -d later stage mode

  -p specify the external port mapping 
-v within the specified directory mapping between hosts and container
--name to start the name of the vessel
name of the first jenkins container
name a second mirrored jenkins

4: jenkins service access password is required
to enter into container internal docker exec -it jenkins / bin / bash jenkins container name

Guess you like

Origin www.cnblogs.com/Be-your-own-hero/p/11613547.html