Not much to tell here. For Jenkins, I go to Docker and pull the latest image: $ docker pull jenkins/jenkins
Then, I am going to run/start Jenkins. I am going to do this with some paramaters: $ docker run -p 8080:8080 -p 50000:50000 -d -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts- p 8080:8080 - This is to expose a port on my laptop so I can access it from my browser. Jenkins runs on Tomcat, and Tomcat uses this port (the one after the ' : ') by default. I am binding that port to my host port 8080 (the one before the ' : ').
- p 50000:50000 - This exposes a port for Jenkins to communicate between primary/seconday.
-d - This runs the container in the background.
-v jenkins_home:/var/jenkins_home - This binds the 'virtual' Jenkins volume to a volume on my laptop. This is so when the container is closed, I do not lose the information that was captured, and I can easily propogate a new container with the saved information.
jenkins/jenkins:lts - This will run the latest version of Jenkins.
Now, I need to look at the processes that Docker is running: $ docker ps - The ' ps ' stands for process status. This will list out processes (duh) and the one we are looking for is the container id.