Ever needed more than one swarm on you system. YESSS!!!
Deploy a whole swarm project in a docker container, or as many as you can handle.
DOSD is a small project that brings a swarm project to live within a docker container. It is based on the DIND Swarm
This gives you all flexiblity to test out any kind of swarm project in one command and let's you delete it just as easy again.
The standard run gives you OpenFaas wrapped in a single container, I told you, have fun!!
docker run -d --name swarm --privileged scher200/dosd
Or if you like direct connection ported to your host
docker run -d --name swarm -p 8080:8080 --privileged scher200/dosd
docker run -d --name swarm -p 80:80 --privileged \
-e DOCKERD_CMD="dockerd --log-level 'fatal' > /dev/null 2>&1 &" \
-e CUSTOM_CMD="docker login custom.registry.com -u yourusername -p yourpassword" \
-e GIT_REPO="https://username:[email protected]/username/yourawesomeproject" \
-e GIT_BRANCH="master" \
-e DEPLOY_STACK="docker stack deploy --with-registry-auth -c docker-compose.yml mystackname" \
scher200/dosd
docker rm -f swarm
Clone this github repository by doing
git clone https://github.com/scher200/dosd
Open the 'Dockerfile' and change the versions specified here Build it..
docker build --rm . -t yourdockername/dosd
And please be so kind and push it back to the docker hub
docker login
docker push yourdockername/dosd
Content type
Image
Digest
Size
151.8 MB
Last updated
over 8 years ago
docker pull scher200/dosd