Skip to content

Waterticket/jenkins-withdocker-all-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins with docker: all architectures (arm64/amd64)

Docker Jenkins
Docker pulls Docker Image Version (tag)

Dockerhub : waterticket/jenkins-withdocker-all-architecture

extends getintodevops/jenkins-withdocker with all architectures (arm64, amd64, etc,,)

How to Use

docker pull waterticket/jenkins-withdocker-all-architecture:latest
docker run -d --restart unless-stopped \
  --name jenkins \
  -p 9090:8080 \
  -v ./data/:/var/jenkins_home \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  waterticket/jenkins-withdocker-all-architecture:latest

Jenkins data volume is ./data

Then jenkins runs in localhost:9090
If you can't connect, check if the port 9090 is not blocked by the firewall.

Docker compose

---
version: '3.8'

services:
  jenkins:
    image: waterticket/jenkins-withdocker-all-architecture:latest
    container_name: jenkins
    privileged: true
    restart: unless-stopped
    ports:
      - "9090:8080"
    volumes:
      - ./data/:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock:ro

Get initial administrator password

docker exec -it jenkins /bin/sh -c "cat /var/jenkins_home/secrets/initialAdminPassword"