Last active
June 3, 2016 06:35
-
-
Save alexejsailer/93b41c2d432997d2558296e3ff896842 to your computer and use it in GitHub Desktop.
Start jenkins container with shared docker libs mounted on ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1 \ | |
-v /lib/x86_64-linux-gnu/libsystemd-journal.so.0:/lib/x86_64-linux-gnu/libsystemd-journal.so.0 \ | |
-v /lib/x86_64-linux-gnu/libcgmanager.so.0:/lib/x86_64-linux-gnu/libcgmanager.so.0 \ | |
-v /lib/x86_64-linux-gnu/libnih.so.1:/lib/x86_64-linux-gnu/libnih.so.1 \ | |
-v /lib/x86_64-linux-gnu/libnih-dbus.so.1:/lib/x86_64-linux-gnu/libnih-dbus.so.1 \ | |
-v $(which docker):/usr/bin/docker -p 8080:8080 myjenk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For those who have problems to follow this article: http://container-solutions.com/running-docker-in-jenkins-in-docker/ sitting in front of Ubuntu 14.04