Skip to content

Instantly share code, notes, and snippets.

@Jaid
Last active Jun 29, 2022
Embed
What would you like to do?
Docker daemon setup for Debian

Paths

daemon.json

sudo nano /etc/docker/daemon.json

override.conf

sudo mkdir /etc/systemd/system/docker.service.d
sudo nano /etc/systemd/system/docker.service.d/override.conf
{
"hosts": [
"tcp://0.0.0.0:2375",
"unix:///var/run/docker.sock"
],
"tls": true,
"tlsverify": true,
"tlscacert": "/home/jaid/.docker/jaid-tls-keys/localhost/shared/ca.pem",
"tlscert": "/home/jaid/.docker/jaid-tls-keys/localhost/server/server-cert.pem",
"tlskey": "/home/jaid/.docker/jaid-tls-keys/localhost/server/server-key.pem",
"log-driver": "json-file",
"log-opts": {
"max-file": "3",
"max-size": "100m"
}
}
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment