Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ docker__default_daemon_json: |
docker__daemon_json: ""
```

#### Alternative dict-based approach

```yml
docker__daemon_json_dict:
log-driver: journald
```

### Configure the Docker daemon options (flags)

Flags that are set when starting the Docker daemon cannot be changed in the
Expand Down
4 changes: 4 additions & 0 deletions templates/etc/docker/daemon.json.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{% if docker__daemon_json_dict is defined %}
{{ docker__daemon_json_dict | to_nice_json }}
{% else %}
{
{% if docker__default_daemon_json | d() %}
{{ docker__default_daemon_json | indent(2, true) }}
Expand All @@ -7,3 +10,4 @@
{{ docker__daemon_json | indent(2, true) }}
{% endif %}
}
{% endif %}