Jenkins (Docker): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 6: | Zeile 6: | ||
<pre> | <pre> | ||
docker run | docker run -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 <name> | docker stop <container name> | ||
</pre> | |||
== Logs == | |||
<pre> | |||
docker logs <container name> | |||
</pre> | </pre> | ||
Version vom 27. August 2022, 13:03 Uhr
Pull und Run
docker pull jenkins/jenkins:lts-jdk11
docker run -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 <container name>
Logs
docker logs <container name>