Skip to content

Instantly share code, notes, and snippets.

@dmarchuk
Last active July 2, 2018 10:54
Show Gist options
  • Save dmarchuk/b3805a0e8af2f3ef5fa6865301ba6715 to your computer and use it in GitHub Desktop.
Save dmarchuk/b3805a0e8af2f3ef5fa6865301ba6715 to your computer and use it in GitHub Desktop.

Grep string in logs

docker logs nginx 2>&1 | grep "127."

Create file from logs

docker logs nginx > stdout.log 2>stderr.log

Mac - clean docker orphaned volumes

docker volume rm $(docker volume ls -qf dangling=true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment