feat: add templates
This commit is contained in:
11
templates/daemon.json.j2
Normal file
11
templates/daemon.json.j2
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
{% if docker_data_dir is defined and docker_data_dir | length > 0 %}
|
||||||
|
"data-root": "{{ docker_data_dir }}",
|
||||||
|
{% endif %}
|
||||||
|
"log-driver": "json-file",
|
||||||
|
"log-opts": {
|
||||||
|
"max-size": "10m",
|
||||||
|
"max-file": "3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
4
templates/docker-override.conf.j2
Normal file
4
templates/docker-override.conf.j2
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://{{ docker_api_host }}:{{ docker_api_port }} --containerd=/run/containerd/containerd.sock
|
||||||
|
|
||||||
Reference in New Issue
Block a user