Skip to content

Instantly share code, notes, and snippets.

@alexejsailer
Last active June 3, 2016 06:35
Show Gist options
  • Save alexejsailer/93b41c2d432997d2558296e3ff896842 to your computer and use it in GitHub Desktop.
Save alexejsailer/93b41c2d432997d2558296e3ff896842 to your computer and use it in GitHub Desktop.
Start jenkins container with shared docker libs mounted on ubuntu 14.04
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
@alexejsailer
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment