Skip to content

Instantly share code, notes, and snippets.

@edvaldoszy
Last active November 19, 2020 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edvaldoszy/937cd9b87fad58bd6d94753ceca15f46 to your computer and use it in GitHub Desktop.
Save edvaldoszy/937cd9b87fad58bd6d94753ceca15f46 to your computer and use it in GitHub Desktop.
#!/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