A Jenkins swarm slave.
For a container with ssh enabled see
csanchez/jenkins-slave
To run a Docker container passing any parameters to the slave
docker run csanchez/jenkins-swarm-slave -master http://jenkins:8080 -username jenkins -password jenkins -executors 1
Linking to the Jenkins master container there is no need to use --master
docker run -d --name jenkins -p 8080:8080 csanchez/jenkins-swarm
docker run -d --link jenkins:jenkins csanchez/jenkins-swarm-slave -username jenkins -password jenkins -executors 1
docker build -t csanchez/jenkins-swarm-slave .