自学内容网 自学内容网

从零开始Ubuntu24.04上Docker构建自动化部署(五)Docker安装jenkins

安装jenkins
下载
sudo docker pull jenkins/jenkins:lts

docker-compose启动

  jenkins:

    image: jenkins/jenkins:lts

    container_name: compose_jenkins

    user: root

    restart: always

    ports:

      - 28080:8080

    volumes:

      - /home/jenkins_home/:/var/jenkins_home

      - /usr/local/bin/docker-compose:/usr/local/bin/docker-compose

    networks:

      - dockernet

初始密码
/var/jenkins_home/secrets/initialAdminPassword


原文地址:https://blog.csdn.net/hrlee520/article/details/142594382

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!