Skip to content

Instantly share code, notes, and snippets.

@ykyuen
Created June 14, 2018 03:21
Show Gist options
  • Save ykyuen/1d727f9e18fc08f7465c8c16bc018185 to your computer and use it in GitHub Desktop.
Save ykyuen/1d727f9e18fc08f7465c8c16bc018185 to your computer and use it in GitHub Desktop.
docker-container-log-rotation-03
$ docker run \
--log-driver json-file \
--log-opt max-size=10m \
--log-opt max-file=10 \
alpine echo hello world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment