Skip to content

mouyigang/docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

173 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for Jenins in docker with access to host's docker

Some notes:

  1. Installed docker so that all dynamic dependencies will be installed.
  2. Add sudo and make jenkins able to execute sudo without password.
  3. Add user jenkins to docker's group(the docker.sock's group, not the docker group inside jenkins container)

docker-compose.yml

  jenkins:
    image: mouyigang/jenkins1
    container_name: jenkins
    volumes:
      - /data/jenkins1:/var/jenkins_home:rw
      - /var/run/docker.sock:/var/run/docker.sock:rw
      - /usr/bin/docker:/usr/bin/docker:ro
    ports:
      - 49001:49001
      - 50000:50000
    restart: always

About

Docker official jenkins repo

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 92.9%
  • Groovy 7.1%