Jenkins 설치 with docker image (Jenkins 재시작 메뉴얼 포함)

kwlee·2021년 8월 3일
0
post-thumbnail

Jenkins 이미지 가져오기

docker pull jenkins/jenkins:lts

Jenkins 이미지로 컨테이너 실행

docker run -it --hostname gitlab.ailab.com -p 3000:8080 -p 14443:22 -v /jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --name jenkins -u root jenkins/jenkins:lts

Jenkins 브라우저 접속

jenkins_url: (ip:3000)

Jenkins 재시작 방법

(jenkins_url)/safeRestart - Allows all running jobs to complete. New jobs will remain in the queue to run after the restart is complete.
(jenkins_url)/restart - Forces a restart without waiting for builds to complete.!

profile
안녕하세요.

0개의 댓글