Skip to content

Instantly share code, notes, and snippets.

@ismailmechbal
Created January 31, 2019 15:59
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 ismailmechbal/0dd41a50683eae67800baab7963304ee to your computer and use it in GitHub Desktop.
Save ismailmechbal/0dd41a50683eae67800baab7963304ee to your computer and use it in GitHub Desktop.
Docker clear container logs
docker inspect --format='{{.LogPath}}' NAME|ID
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
echo "" > /var/lib/docker/containers/CONTAINER_ID/CONTAINER_ID-json.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment