Dockerhub : waterticket/jenkins-withdocker-all-architecture
extends getintodevops/jenkins-withdocker with all architectures (arm64, amd64, etc,,)
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.
---
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
docker exec -it jenkins /bin/sh -c "cat /var/jenkins_home/secrets/initialAdminPassword"