forked from Netz39_Admin/netz39-infra-ansible
Allow to set data root and storage driver for docker
This commit is contained in:
parent
16200bf411
commit
2203abeaf6
1 changed files with 2 additions and 9 deletions
|
@ -45,16 +45,9 @@
|
||||||
- python-docker
|
- python-docker
|
||||||
|
|
||||||
- name: Set docker configuration
|
- name: Set docker configuration
|
||||||
copy:
|
template:
|
||||||
|
src: templates/daemon.json.j2
|
||||||
dest: /etc/docker/daemon.json
|
dest: /etc/docker/daemon.json
|
||||||
content: |
|
|
||||||
{
|
|
||||||
"exec-opts": ["native.cgroupdriver=systemd"],
|
|
||||||
"log-driver": "json-file",
|
|
||||||
"log-opts": {
|
|
||||||
"max-size": "100m"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
notify: restart docker
|
notify: restart docker
|
||||||
|
|
||||||
- name: Check current docker-compose version.
|
- name: Check current docker-compose version.
|
||||||
|
|
Loading…
Reference in a new issue