Last active
November 19, 2020 12:46
-
-
Save edvaldoszy/937cd9b87fad58bd6d94753ceca15f46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CONFIG_FILE=/etc/docker/daemon.json | |
cat << CONFIG > $CONFIG_FILE | |
{ | |
"log-driver": "json-file", | |
"log-opts": { | |
"max-size": "50m", | |
"max-file": "1" | |
} | |
} | |
CONFIG | |
chmod 600 $CONFIG_FILE | |
chown root:root $CONFIG_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment