Skip to content

Instantly share code, notes, and snippets.

@nutrino
Created March 4, 2023 14:01
Show Gist options
  • Save nutrino/e96c3055a6a55e85016903eba3b3c0f3 to your computer and use it in GitHub Desktop.
Save nutrino/e96c3055a6a55e85016903eba3b3c0f3 to your computer and use it in GitHub Desktop.
Docker commands
docker exec -u 0 -it {ContainerName} bash
@nutrino
Copy link
Author

nutrino commented Sep 10, 2023

docker volume ls -q | xargs -r docker volume inspect --format '{{ printf "%.2fGB\n" .UsageData.Size }}' | awk '{s+=$1} END {print "Total: " s "GB"}'
docker run -d --name timescaledb-server -p 5432:5432 -v /data/timescaledb-data:/var/lib/postgresql/data -e "POSTGRES_PASSWORD=****" -e "TIMESCALEDB_TELEMETRY=off" timescale/timescaledb:latest-pg12

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