Skip to content

Instantly share code, notes, and snippets.

@Dkra
Created April 21, 2019 15:54
Show Gist options
  • Save Dkra/afd5d45d73ec5a7bbdb772c98f370f80 to your computer and use it in GitHub Desktop.
Save Dkra/afd5d45d73ec5a7bbdb772c98f370f80 to your computer and use it in GitHub Desktop.
version: '3.7'
services:
jenkins:
image: 15625611d6fb
stdin_open: true
ports:
- target: 8080
published: 8080
protocol: tcp
mode: host
volumes:
- '/var/jenkins_home:/var/jenkins_home'
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- /usr/lib64/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7
tty: true
# After build up the container, need to execute the command below:
# docker exec -u root ${ContainerId} /bin/chmod -v a+s $(which docker)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment