Skip to content

Instantly share code, notes, and snippets.

@kumar-de
Last active August 21, 2020 01:08
Show Gist options
  • Save kumar-de/5c05c42b39eba8dcf82a9c310d9bb049 to your computer and use it in GitHub Desktop.
Save kumar-de/5c05c42b39eba8dcf82a9c310d9bb049 to your computer and use it in GitHub Desktop.
create a docker container without the json-log or with log-rotate #docker #container #json #log #jsonlog #logrotate #rotate #log

Without logs

docker run -d --log-driver none --net=host achintyakumar/docker-image:1.0

With log-rotate

docker run --log-opt max-size=50m --name=datahub-with-logrotate --net=host -d achintyakumar/aggregated-server:0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment