Jenkins Docker-Compose.yml

version: '3.3'
services:
    jenkins:
        image: jenkins/jenkins:lts
        restart: unless-stopped
        privileged: true
        user: root
        ports:
        - 8080:8080
        container_name: jenkins
        volumes:
        - ./jenkins:/var/jenkins_home
        - /var/run/docker.sock:/var/run/docker.sock
        - /usr/local/bin/docker:usr:/usr/local/bin/docker

docker-compose up -d 運行 jenkins

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

分類: 未分類。這篇內容的永久連結

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *