commit 2245699a365fc85b1d8feb112ff4bf39090841ca
parent 0e5a19da0bd15107b86c0f8c340dee729c76c158
Author: ling0x <ling0x@users.noreply.github.com>
Date: Tue, 25 Aug 2026 22:58:25 +0100
docker commands
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/commands/docker.txt b/commands/docker.txt
@@ -1,4 +1,7 @@
DOCKER
Pretty display docker ps:
+
+docker ps --format '{{.Names | printf "%-20s"}} {{.Ports}}' | sort
+
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}\t{{.Networks}}"