Skip to content

Running more than one docker daemons in the same machine

Notifications You must be signed in to change notification settings

antIggl/multiple-docker-daemons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Running multiple Docker Daemons in the same machine

We seperate the number of Docker daemons in the machine docker : the default installation docker-apps : the isolated docker installation for applications

Goal

The main goal is to have separate docker daemons running on the same machine isolated. Our use case was the jenkins server. I used to run my jenkins server in a docker container and I wanted to isolate the docker that uses jenkins to launch containers.

Procedure

  1. Create the service file for the daemon Edit appropriately docker-apps.service file and place it in /etc/systemd/system/ directory
sudo cp ./docker-apps.service /etc/systemd/system/docker-apps.service
  1. Create the socket file
sudo cp ./docker-apps.socket /etc/systemd/system/docker-apps.socket
  1. Create the new daemons data-root directory
sudo mkdir /var/lib/docker-apps
  1. Place the configuration file in /etc/docker/
sudo cp ./docker-daemon-apps.json /etc/docker/docker-apps.json
  1. Enable new service
sudo systemctl enable docker-apps.service
sudo systemctl enable docker-apps.socket
  1. Run new service
sudo systemctl start docker-apps.socket
sudo systemctl start docker-apps.service

Contributors

  • Antonios Inglezakis (@antIggl)

About

Running more than one docker daemons in the same machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published