Created
March 4, 2023 14:01
-
-
Save nutrino/e96c3055a6a55e85016903eba3b3c0f3 to your computer and use it in GitHub Desktop.
Docker commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -u 0 -it {ContainerName} bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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