Open MurzNN opened 3 years ago
Seems this can be implemented using docker.pkg.environ
option, I'll try this and report results.
The latest version of the formula has support to add settings to the daemon.json. Is that what what you're looking for?
For example:
docker:
pkg:
docker:
daemon_config:
exec-opts:
- native.cgroupdriver=systemd
log-driver: json-file
log-opts:
max-size: 100m
storage-driver: overlay2
Thanks, this appears to be the solution. Adding to pillar example may be useful.
Is your feature request related to a problem?
When we install kubernetes, it recommends the
systemd
driver for Docker:So I try to set it via creating file:
But formula removes it on every state apply. Other way is to change systemd docker service via setting
Describe the solution you'd like
Will be good to have this setting in Docker formula.
Describe alternatives you've considered
Alternative is not deleting the
/etc/docker/daemon.json
file, but separate setting in formula will be much better.