Jenkins (Docker): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:


<pre>
<pre>
docker run -p 8080:8080 -p 50000:50000 --restart=on-failure -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11
docker run --name my_jenkins -p 8080:8080 -p 50000:50000 --restart=on-failure -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11
</pre>
</pre>


Zeile 13: Zeile 13:
<pre>
<pre>
docker ps -a
docker ps -a
docker stop <container name>
docker stop my_jenkins
</pre>
</pre>


Zeile 19: Zeile 19:


<pre>
<pre>
docker logs <container name>
docker logs my_jenkins
</pre>
</pre>



Version vom 27. August 2022, 13:07 Uhr

Pull und Run

docker pull jenkins/jenkins:lts-jdk11
docker run --name my_jenkins -p 8080:8080 -p 50000:50000 --restart=on-failure -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11

Stop

docker ps -a
docker stop my_jenkins

Logs

docker logs my_jenkins

Links

https://hub.docker.com/r/jenkins/jenkins


Zurück zu Docker, Jenkins