Jenkins (Docker): Unterschied zwischen den Versionen
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 | docker stop my_jenkins | ||
</pre> | </pre> | ||
Zeile 19: | Zeile 19: | ||
<pre> | <pre> | ||
docker logs | 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