jenkins docker-compose备份

docker-compose.yaml

version: '3.7'

services:
  jks_web:
    image: jenkinsci/blueocean:1.21.0-bcc31d32159f
    container_name: jks
    environment:
       TZ: 'Asia/Shanghai'
    ports:
      - '8080:8080'
      - '50000:50000'
    volumes:
       - './jks_home:/var/jenkins_home'
       - '/var/run/docker.sock:/var/run/docker.sock'
       - '/usr/bin/docker:/usr/bin/docker'
    restart: always

添加用户命令adduser jenkins
给目录授权命令chown jenkins:jenkins jks_home/

暂无评论
发表新评论