Using docker in a dockerized Jenkins container

Wow, thanks! Didn’t know that sockets could be mounted. It looks like it works almost fine now. I’m starting the Jenkins container with the following command:

docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) -p 8080:8080 -v /smb/jenkins_home:/var/jenkins_home jenkins-docker

Jenkins is running and “sees” a change in the repository. It thens tries to build and run a docker container by using the binded Docker socket. Unfortunately I receive an error:

docker: error while loading shared libraries: libapparmor.so.1: cannot open shared object file: No such file or directory

Some more ideas? I’m using the following versions:

[dev-server-rogier][~] → docker version
Client version: 1.0.1
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 990021a
Server version: 1.0.1
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): 990021a