A JNLP Slave Docker image with docker and docker-compose installed.
docker pull yanqd0/jnlp-dind-slave
You can either connect via the Docker socket like this:
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
--rm \
--entrypoint bash \
yanqd0/jnlp-dind-slave \
-c 'docker version'
Or better, connect to some external Docker deamon via TCP:
docker run --rm --name dind -d --privileged --net host docker:dind
docker run \
--rm \
-e DOCKER_HOST=localhost \
--net host \
--entrypoint bash \
yanqd0/jnlp-dind-slave \
-c 'docker version'
There is a reference file docker-compose.yml, which is not working directly.
Name | Version |
---|---|
Debian | Stretch |
OpenJDK | 8 |
Git | 2.11.0 |
Jenkins slave | 3.27 |
Docker | 18.09.6 |
docker-cmpose | 1.24.0 |
It is welcome to remind me to update by issues.
This repository is forked from ninech/jnlp-slave-with-docker, which is not maintained.
Copyright (c) 2018~2019 Yan QiDong
Copyright (c) 2018 nine