Skip to content

Instantly share code, notes, and snippets.

@scottalan
Created April 3, 2018 16:16
Show Gist options
  • Save scottalan/089d985d40b9d2f4f4b6a79f3357cf78 to your computer and use it in GitHub Desktop.
Save scottalan/089d985d40b9d2f4f4b6a79f3357cf78 to your computer and use it in GitHub Desktop.
Docker Inspect
# Find db container ID
DB_CONTAINER_ID=$(docker inspect --format"{{.Id}}" CONTAINER_NAME)
# Path to current log file for container
LOG_PATH=$(docker inspect -f '{{.LogPath}}' CONTAINER_NAME)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment