Tool.Yun
أدوات مفيدة للمطورين
CSV إلى JSON
JSON Linter
JSON إلى .env
JSON إلى C#
JSON إلى CSV
JSON إلى Go
JSON إلى MessagePack
JSON إلى TOML
JSON إلى TS
JSON إلى XML
JSON إلى object
JSON إلى البيانات
JSON إلى كيان Java
Json Escaper/Unescaper
Json إلى PHP-Array
Json إلى Python
Json إلى SQL DDL
Json إلى مخطط
PHP-Array إلى JSON
tools.json-patch.name
أداة التحويل الى نص بتنسيق JSON
أداة ترتيب JSON
استعلام Json
تجميل وتنسيق JSON
تحويل Json إلى كود PHP
تحويل ObjGen إلى JSON
حزمة الرسائل إلى JSON
دمج JSON
محرر JSON
محلل حجم JSON
محول JS إلى JSON
محول JSON إلى JS
محول JSON إلى YAML
مصغر JSON
مقارنة JSON
مُختبر Jq/JSONPath
مُسطّح/غير مُسطّح JSON
TOML إلى JSON
تحويل TOML إلى YAML
تومل لينتر
دليل أوامر Tmux
دليل أوامر Zellij
دليل أوامر الشاشة
دليل مختصر لـ PowerShell
ملخص أوامر Git
ورقة الغش Jq
ورقة الغش Markdown
ورقة الغش Nginx
ورقة الغش Sed
ورقة الغش VIM
ورقة الغش الخاصة بـ Docker
ورقة الغش الخاصة بـ Docker SWARM
ورقة الغش الخاصة بـ Dockerfile
ورقة الغش الخاصة بـ Regex
ورقة الغش باش
ورقة الغش لـ Docker Compose
ورقة الغش لقواعد بناء جملة JSONPath
ورقة الغش نانو
ورقة غش Git Semantic Commit
ورقة غش K8s
ورقة غش تعبيرات عادية شائعة
ورقة غش لأمر chmod
ورقة غش لقواعد XPath
ورقة غش لمحددات CSS
XML Linter
XML إلى JSON
تحويل ObjGen إلى HTML
منسق XML
مُختبر XPath
مُختبر XSLT
أداة اختيار البطاقات
رمي النرد
عجلة الحظ
قاذفة العملة
tools.epc-qrcode-generator.name
فك رمز الاستجابة السريعة
قارئ الباركود
مولد الباركود
مولد رمز الاستجابة السريعة (QR Code)
مولد رمز الاستجابة السريعة (QR Code) للشبكة اللاسلكية
مولد رمز الاستجابة السريعة (QR Code) لمعلومات الاتصال
مُتحقق GTIN
أداة البحث عن رموز البلدان وفقًا لمعيار ISO 3166
إرشادات الإضاءة من IES
باحث ISO 639
بحث يونيكود
توافق ترخيص البرنامج
حاسبة اتفاقية مستوى الخدمة
حاسبة سرعة الجري
حاسبة مؤشر كتلة الجسم
شرح أوامر shell
قاموس إلكتروني
محقق أرقام ضريبة القيمة المضافة
محقق لوهن
محلل ومدقق رقم الحساب المصرفي الدولي (IBAN)
محلل ومنسق رقم الهاتف
محول الأحرف الكبيرة من RMB
محول التقويم
محول العملات
مدقق بطاقات الائتمان
مُحقق ومحلل ISBN
أي يوم؟
إنذار الوقت
إنذار كرون/أيام الأسبوع
العد التنازلي
حاسبة TTL
حاسبة الأيام
حاسبة التاريخ والمدة
حاسبة المدة
حاسبة وقت الوصول المتوقع (ETA)
دمج iCal
محلل ملفات ICAL
محول أرقام الأسبوع
محول المنطقة الزمنية
محول الوقت والتاريخ
مقياس الزمن
مولد ICAL
باسيتو/باسرك المحلية
باسيتو/باسرك عام/خاص
بايتات Niceware إلى عبارة مرور
بيكريبت
تجزئة النص
تشفير / فك تشفير النص
تشفير AGE
تشفير PGP
تشفير RSA
تشفير الملفات باستخدام PGP
تشفير سلسلة Jasypt
حاسبة CRC
فك تشفير Ansible Vault Crypt
محلل JWT
محلل SAML
محلل الشهادة/المفتاح
محول شهادة SSL
مشاركة أسرار شامير
مشفر/مفكك شفرة Bech32
مولد HMAC
مولد JWT
مولد المسؤولية الاجتماعية للشركات
مولد زوج المفاتيح Ed25519
مولد زوج مفاتيح ECDSA
مولد زوج مفاتيح RSA
مولد شهادة X509
مولد مفاتيح PGP
مُوقِّع ومُتحقق RSA/DSA/ECDSA
هاشر Argon2
هاشر الملفات
Json إلى Protobuf
Json إلى SQL INSERT
Stacktrace أجمل
أداة إخفاء جافا سكريبت
أداة إنشاء قواعد البيانات
أداة فك تشفير/فك حزم JavaScript
اختبار واجهة المستخدم Swagger
اختبارات API
تجميل وتنسيق SQL
تحويل Json إلى TypeScript
تمييز الأكواد/البرامج النصية
تنسيق وتصغير ملفات CSS/JS
جهاز اختبار الهروب ANSI
جهاز اختبار بيكوماتش
مؤقت بومودورو
محرر أوامر سطر الأوامر
محول الاقتباس
محول التجعيد
محول ملفات HEX
مزور البيانات
مقسم الملفات
منشئ سلسلة اتصال قاعدة البيانات
مولد Mailto
مولد أسرار جانجو
مولد الرموز المفضلة
مولد تجاهل Git
مولد جداول قواعد البيانات
مولد سمات Gita
مولد علامات Open Graph
مولد معلمات SQL
مولد نصوص اختبار التحميل K6
مُحسِّن جافا سكريبت
مُصغّر SQL
هارب الخيط
IPv4-6/IPRange/CIDR في IPRange/CIDR/IPMask
tools.restic-command-generator.name
tools.url-redirection-checker.name
أداة اختبار الميكروفون
أداة اختبار منافذ TCP/UDP
أداة تنزيل الروابط المتعددة
أرقام المنافذ
اختبار Websocket
استعلامات Cloudflare DNS/RDAP
استعلامات DNS
الأعداد الصحيحة إلى IPv4/IPv6
التحقق من عنوان MAC
بينغ
تحديد الموقع الجغرافي عبر IP
تفويض SIP
جهاز فك تشفير ARPA
حاسبة RAID
حاسبة ZPOOL RAID
حاسبة أمر Chmod
حاسبة استبعاد شبكات IP الفرعية
حاسبة الشبكات الفرعية المرئية
حاسبة الشبكات الفرعية لـ IPv4
حاسبة الشبكة الفرعية IPv6
حاسبة القرص الصلب
حاسبة معدل نقل البيانات
حاسبة موثوقية RAID
حاسبة نطاق IP من CIDR إلى IP الإصدار 4/6
حاسبة نطاق IPv4/6 إلى CIDR(s)
عنوان IP الخاص بي
فك تشفير X-VR-SpamCause
قائمة الشبكات الفرعية IPv4
قوة كلمة المرور Zxcvbn
محلل قوة كلمة المرور
محول Punycode
محول عناوين IPv4
محول عنوان IPv6
محول عنوان MAC
مدقق DNSBL
مدقق Whois
موسع نطاقات IPv4
مولد Apache LogRotate
مولد Crontab
مولد DKIM DNS
مولد DNS BIMI
مولد DNS DMARC
مولد FStab
مولد HTAccess
مولد Htpasswd/htaccess
مولد Iptables
مولد Rsync
مولد SPF DNS
مولد WPA PSK
مولد أوامر Curl
مولد أوامر UFW
مولد أوامر الإيقاف
مولد أوامر جدار الحماية
مولد الخيار 43
مولد تكوين Wireguard
مولد عناوين IPv6 ULA
مولد عناوين MAC
مولد مصادقة أساسية
مولد منفذ عشوائي
مولد نظام أسماء النطاقات PTR
مُحَوِّل أوامر الصدفة
مُنسِّق أوامر الصدفة
مُنسّق Nginx
ورقة الغش ZPool
يحتوي على مطهر
أداة تغيير حجم الصورة
إزالة EXIF
إزالة خلفية الصورة
التعرف الضوئي على الحروف للصور وملفات PDF
تحويل GIF إلى MP4
تحويل الصورة إلى SVG (potrace)
عاكس ألوان الصورة
علامة مائية
قارئ جودة الصور EXIF/Metadata/GPS/JPEG
قص الصورة
محول HEIC
محول ICO/PNG
محول صيغ الصور
مسجل الكاميرا
معاينة ملفات SVG
مقارنة الصور
أداة إنشاء أوامر Nmap
أداة اختبار HTTPS
أداة اختبار انتشار نظام أسماء النطاقات (DNS)
أداة اختبار نظام أسماء النطاقات (DNS)
باحث خصائص LDAP في ActiveDirectory
حاسبة المقاومة
دليل مختصر لتوصيل كابلات RJ45 Cat6
فك تشفير EMV TLV
فك تشفير Outlook Safelink
فك تشفير عنوان URL لمشاركة Sharepoint
فك تشفير معاملات ETH
قارئ ملفات الباركيه
قناع البيانات الحساسة
كاشف نوع الملف
كاشف/فك تشفير مجموعة أحرف النص
محلل MSG في Outlook
محلل البريد الإلكتروني
محلل البريد الإلكتروني المرتد
محلل تقارير DMARC
محلل عنوان URL
محلل ملفات تعريف الارتباط
محول GZip/Deflate
محول SMART Raw
محول أرقام الفاصلة العائمة (float number)
محول الطرف الأوسط
محول ترميز MIME
محول معرف كائن MongoDB
مختبر البكسلات الميتة
مستخرج هوية ندفة الثلج
مشفر/فك تشفير سداسي عشري
معلومات رموز المفاتيح
منشئ عناوين URL
مولد TCPDump
مُوسِّع عناوين URL القصيرة
وحدة التحكم بالمنفذ التسلسلي
键盘测试器
كمبيوتر اللياقة البدنية
محول الإضاءة
محول التردد
محول التسارع
محول السرعة
محول الطاقة
محول بادئات النظام الدولي للوحدات
محول درجات الحرارة
محول طاقة الطعام
محول معدل التدفق الحجمي
محول وحدات الحجم
محول وحدات الزاوية
محول وحدات الضغط
محول وحدات الطاقة
محول وحدات الطول
محول وحدات القوة
محول وحدات الكتلة
محول وحدات المساحة
حاسبة المسافة الجغرافية
حاسبة النسب المئوية
حاسبة نسبة العرض إلى الارتفاع
صانع مقاييس الأداء
Excel إلى البيانات
استهلاك الطاقة ونفقاتها في الكمبيوتر
تحويل CSV إلى بيانات
تحويل الملفات إلى Base64
تحويل نص إلى تمثيله الثنائي في UTF-8
تورنت إلى مغناطيس
محول أحرف Unicode إلى كيانات جافا
محول الأرقام الرومانية
محول الأنظمة العددية
محول الإحداثيات الجغرافية
محول الخصائص
محول الوحدات المتعددة
محول تنسيق متغيرات البيئة
محول ديسيبل ميلي واط
محول وحدة تخزين البيانات
مرمز Base64 للنصوص
مولد ULID
مُشفِّر/فك تشفير مصفوفة سداسية عشرية Base64
مُعَيِّر البريد الإلكتروني
نص إلى الترميز الموحد (Unicode)
محول UUID
مولد الأرقام العشوائية
مولد الاختصارات الرقمية (Numeronym)
مولد الرمز البريدي
مولد الرموز
مولد رمز كلمة مرور لمرة واحدة (OTP)
مولد عبارات مرور BIP39
مولد عبارة المرور
مولد كلمة المرور Diceware
مولد معرفات NanoIDs
مولد معرفات UUIDs
JSON إلى TOON
Unicode إلى GSM-7
أداة البحث عن الخطوط المكررة
أنا و ل تشيكر
إحصائيات النص
اختبار التعابير العادية
استخراج النص من HTML
الصورة إلى فن ASCII
انتقل إلى المسافات باستخدام زر Tab
تحويل TOON إلى JSON
تحويل النص إلى أسماء Unicode
تعتيم سلسلة نصية
حاسبة ليفينشتاين
حزم الملفات للذكاء الاصطناعي
قارئ تأكيد الحضور
كلمات مميزة
مترجم النصوص
محدد سطور عشوائية
محول الرونية
محول القوائم
محول تخطيط لوحة المفاتيح
محول حالة الأحرف
محول شفرة مورس
مخطط هيكل المجلد
مشاركة الروابط الاجتماعية
مصدر حورية البحر
مقارنة الخطوط
مقارنة القوائم
مقارنة النصوص
مقدر رمز GPT
مقسم مطالبات الذكاء الاصطناعي
منتقي الرموز التعبيرية
مولد أوامر Sed
مولد الاستشهادات
مولد نص فني ASCII
مولد نصوص Lorem ipsum
مولد/بانر زالغو
مُستبدل النص الذكي وقاطع الأسطر
مُشفِّر/فك تشفير رمز GPT
مُنسّق Unicode
نص إلى أبجدية الناتو
أنواع الوسائط (MIME types)
الصورة إلى CSS
تحويل HTML إلى XHTML
تحويل HTML إلى بيانات
ترميز/فك ترميز السلاسل النصية بصيغة ترميز عنوان URL
تهريب كيانات HTML (HTML Entities)
تهيئة سلسلة نصية كـ Slug
رموز حالة HTTP
صائد عناوين URL
صانع شظايا بحث نص URL
عجلة الألوان
محرر HTML مرئي
محلل وكيل المستخدم
محول CSS XPath
محول الألوان
محول بكسل REM
محول وحدات CSS
مدقق تباين الألوان
معلومات الجهاز
منظف HTML
منظف عناوين URL
مولد تدرج CSS
مولد صور SVG مؤقتة
مولد عنوان URL لـ UTM
مُجمِّل CSS
مُحسِّن HTML
مُصغّر HTML
HTML إلى Markdown
Markdown Lorem Ipsum
Markdown إلى DOCX
Markdown إلى HTML
Markdown إلى بيانات
tools.markdown-format-converter.name
تحويل Markdown إلى نص
تحويل ملفات epub إلى Markdown
لصق كعلامة Markdown
محرر Markdown
معاينة Markdown
مقارنة ماركداون
مولد جداول Markdown
مولد جدول المحتويات Markdown
مُحسِّن جدول Markdown
منشئ تعبيرات Cron
حاسبة الاستهلاك
التعرف الضوئي على الحروف في الرياضيات
حاسبة الإكراميات
حاسبة ثنائية
محلل رياضي
محول صيغ الرياضيات
مُصوِّر المنحنيات المثلثية/المعادلات
Docker Compose إلى Quadlets
Docker Compose إلى ملف .env
Docker compose إلى kubernetes
برنامج Traefik Docker Compose Maker
برنامج تنزيل صور Docker
تشغيل Docker إلى Kubernetes
تشغيل Docker إلى Quadlets
فحص Docker لتشغيل Docker
محول Docker Compose إلى Docker run
محول أوامر Docker run إلى Docker compose
محول تنسيق Docker Compose
ملصقات دوكر بانغولين
مولد التحكم في الوصول المستند إلى الأدوار (RBAC) في Kubernetes
مولد تسميات Dockerfile
مُحقق Docker Compose
تحويل HTML إلى PDF
تشفير PDF
تنسيق PDF Linearize/FastWeb
ضاغط PDF
فك تشفير وفتح ملفات PDF
مدقق تواقيع PDF
مستخرج صفحات PDF
مستخرج نصوص PDF
مُجمّع ملفات PDF
YAML إلى TOML
اندماج YAML
تجميل وتنسيق YAML
محول YAML إلى JSON
مُسطّح/غير مُسطّح YAML

ورقة الغش الخاصة بـ Docker

مذكرة أوامر Docker

Docker packages an application and everything it needs into a container — a lightweight, isolated process that runs the same way on any host. Images are the immutable blueprints; containers are running instances of them.

  • Image — a read-only template built from a Dockerfile
  • Container — a running (or stopped) instance of an image
  • Volume — storage that outlives the container that wrote it
  • Network — a virtual network where containers reach each other by name
  • Registry — where images are pushed and pulled (Docker Hub, GHCR, ECR, …)

💡 Every subcommand has its own help: docker run --help, docker compose up --help.

⚡ Most-Used Commands

CommandWhat it does
docker ps -aList all containers, running or not
docker imagesList local images
docker run -it --rm <image> shThrowaway shell in a fresh container
docker exec -it <container> shShell inside a running container
docker logs -f <container>Follow a container’s output
docker build -t <name>:<tag> .Build an image from the local Dockerfile
docker compose up -d --buildRebuild and start a whole stack
docker system dfSee what is eating your disk

🧭 General

# start the Docker daemon (usually done by the service manager)
dockerd

# top-level help; works on every subcommand
docker --help

# system-wide information: storage driver, resources, warnings
docker info

# client and server versions
docker version

# list contexts (local socket, remote hosts, ...)
docker context ls

# target another daemon with the same commands
docker context use <ctx>

# live stream of daemon events
docker events

📦 Images

An image is a stack of read-only layers: code, runtime, libraries and settings baked together.

# build from the Dockerfile in this directory
docker build -t <image> .

# build and tag, e.g. myapp:1.2
docker build -t <image>:<tag> .

# rebuild every layer from scratch
docker build -t <image> . --no-cache

# use a Dockerfile somewhere else
docker build -f <path>/Dockerfile -t <image> .

# pass a build argument
docker build --build-arg KEY=value -t <image> .

# stop at a stage of a multi-stage build
docker build --target <stage> -t <image> .

# build for another architecture
docker build --platform linux/amd64 -t <image> .

# list local images
docker images

# include intermediate layers
docker images -a

# add a name for a registry
docker tag <image> <user>/<image>:<tag>

# full metadata as JSON
docker inspect <image>

# layers, sizes and the commands behind them
docker history <image>

# delete an image
docker rmi <image>

# force-delete an image containers still reference
docker rmi -f <image>

# remove dangling images
docker image prune

# remove every image no container uses
docker image prune -a

# export an image to a tarball
docker save -o <file>.tar <image>

# import an image from a tarball
docker load -i <file>.tar

🐳 Registries & Docker Hub

Docker Hub is the default public registry; the same commands work against any other one.

# log in to Docker Hub
docker login -u <username>

# log in to a private registry (GHCR, ECR, ...)
docker login <registry-url>

# drop the stored credentials
docker logout

# search Docker Hub from the terminal
docker search <term>

# pull the :latest tag
docker pull <image>

# pull a specific tag
docker pull <image>:<tag>

# pull for another architecture
docker pull --platform linux/arm64 <image>

# publish an image
docker push <user>/<image>:<tag>

# architectures available for a tag
docker manifest inspect <image>:<tag>

🚢 Running Containers

# create and start a container
docker run <image>

# give it a stable name
docker run --name <container> <image>

# detached: run in the background
docker run -d <image>

# interactive shell (sh on minimal images)
docker run -it <image> bash

# delete the container as soon as it exits
docker run --rm <image>

# publish a port, e.g. -p 8080:80
docker run -p <host>:<container> <image>

# publish every EXPOSEd port on random ports
docker run -P <image>

# set an environment variable
docker run -e KEY=value <image>

# load environment variables from a file
docker run --env-file ./.env <image>

# mount a named volume
docker run -v <volume>:/data <image>

# bind-mount the current directory
docker run -v $(pwd):/app <image>

# bind-mount the current directory read-only
docker run -v $(pwd):/app:ro <image>

# set the working directory
docker run -w /app <image> <command>

# run as your own UID/GID, not root
docker run -u $(id -u):$(id -g) <image>

# attach to a user-defined network
docker run --network <network> <image>

# restart policy, see the flags table below
docker run --restart unless-stopped <image>

# cap the resources it may use
docker run --memory 512m --cpus 1.5 <image>

# override the image entrypoint
docker run --entrypoint <cmd> <image>

# create without starting
docker create --name <container> <image>

🎛 Managing Containers

# running containers
docker ps

# every container, running or exited
docker ps -a

# IDs only — handy for scripting
docker ps -q

# filter by status, name, label, ancestor, ...
docker ps --filter "status=exited"

# start a stopped container
docker start <container>

# graceful stop (SIGTERM, then SIGKILL)
docker stop <container>

# stop and start again
docker restart <container>

# immediate SIGKILL
docker kill <container>

# freeze all processes in the container
docker pause <container>

# resume them
docker unpause <container>

# remove a stopped container
docker rm <container>

# stop and remove in one go
docker rm -f <container>

# rename a container
docker rename <old> <new>

# change resource limits or restart policy live
docker update --restart=always <container>

# remove every stopped container
docker container prune

# block until it exits, then print its exit code
docker wait <container>

🔍 Inspecting & Debugging

# shell inside a running container
docker exec -it <container> bash

# for alpine/distroless-style images
docker exec -it <container> sh

# get in as root to install debug tools
docker exec -it -u root <container> sh

# run a one-off command
docker exec <container> <command>

# print the container's output
docker logs <container>

# follow it, like tail -f
docker logs -f <container>

# last 100 lines, with timestamps
docker logs --tail 100 -t <container>

# only the last 10 minutes
docker logs --since 10m <container>

# low-level details as JSON
docker inspect <container>

# one field via a Go template
docker inspect -f '{{.State.Status}}' <container>

# the container's IP address on the default bridge
docker inspect -f '{{.NetworkSettings.IPAddress}}' <container>

# live CPU/memory/IO for all containers
docker stats

# processes running inside
docker top <container>

# published port mappings
docker port <container>

# filesystem changes since it started
docker diff <container>

# copy a file out of a container
docker cp <container>:/path/file ./

# copy a file into a container
docker cp ./file <container>:/path/

# snapshot a container as a new image
docker commit <container> <image>:<tag>

# attach to the main process (Ctrl-P Ctrl-Q detaches)
docker attach <container>

💾 Volumes

Volumes keep data outside the container’s writable layer, so it survives docker rm and image upgrades.

# create a named volume
docker volume create <volume>

# list volumes
docker volume ls

# driver, mount point, labels
docker volume inspect <volume>

# delete a volume (and its data)
docker volume rm <volume>

# delete every unused volume
docker volume prune

# named volume, managed by Docker
docker run -v <volume>:/data <image>

# bind mount from the host
docker run -v $(pwd):/app <image>

# explicit bind-mount syntax
docker run --mount type=bind,src=$(pwd),dst=/app <image>

# the same named volume, spelled out with --mount
docker run --mount type=volume,src=<volume>,dst=/data <image>

# in-memory scratch space
docker run --tmpfs /tmp <image>

💡 Back up a volume: docker run --rm -v <volume>:/data -v $(pwd):/backup alpine tar czf /backup/backup.tar.gz -C /data .

🌐 Networks

Containers on the same user-defined network resolve each other by container name.

# list networks
docker network ls

# create a bridge network
docker network create <network>

# create a network with a fixed subnet
docker network create --driver bridge --subnet 172.30.0.0/16 <network>

# subnet and connected containers
docker network inspect <network>

# attach a running container
docker network connect <network> <container>

# detach it again
docker network disconnect <network> <container>

# delete a network
docker network rm <network>

# delete every unused network
docker network prune

# share the host network stack (Linux)
docker run --network host <image>

# no networking at all
docker run --network none <image>

🧩 Docker Compose

Compose describes a multi-container application in a single compose.yaml (or docker-compose.yml).

# start every service in the foreground
docker compose up

# start detached
docker compose up -d

# rebuild images first
docker compose up -d --build

# start one service and its dependencies
docker compose up -d <service>

# stop and remove containers and networks
docker compose down

# stop, remove, and delete the named volumes too
docker compose down -v

# status of the project's services
docker compose ps

# follow the logs of all services
docker compose logs -f

# follow the logs of a single service
docker compose logs -f <service>

# (re)build the service images
docker compose build

# pull the service images
docker compose pull

# shell inside a running service
docker compose exec <service> sh

# one-off command in a new container
docker compose run --rm <service> <cmd>

# restart one service
docker compose restart <service>

# stop the containers, keep them around
docker compose stop

# start them again
docker compose start

# validate and print the resolved configuration
docker compose config

# processes running in each service
docker compose top

# use a specific compose file
docker compose -f <file> up -d

# include services behind a profile
docker compose --profile <name> up -d

# rebuild/sync automatically on file changes
docker compose watch

🧹 System & Cleanup

Disk usage adds up fast — these are the commands that give the space back.

# what images, containers, volumes and cache cost
docker system df

# the same, itemised
docker system df -v

# stopped containers, dangling images, unused networks
docker system prune

# the same, plus every image no container uses
docker system prune -a

# the same, plus unused volumes ⚠️ destructive
docker system prune -a --volumes

# clear the build cache
docker builder prune

# images unused for more than a week
docker image prune -a --filter "until=168h"

⚠️ --volumes deletes data no running container is using. Check docker volume ls first.

💡 Handy One-Liners

# stop every running container
docker stop $(docker ps -q)

# remove every container
docker rm -f $(docker ps -aq)

# remove dangling images
docker rmi $(docker images -qf dangling=true)

# shell into the most recent container
docker exec -it $(docker ps -ql) sh

# disposable dev environment
docker run --rm -it -v $(pwd):/app -w /app node:22 sh

# follow logs by partial name
docker logs -f $(docker ps -qf name=<partial>)

# list every mount of a container
docker inspect \
  -f '{{range .Mounts}}{{.Source}} -> {{.Destination}}{{println}}{{end}}' <container>

🛠 Common Flags Reference

FlagMeaning
-d, --detachRun in the background
-itInteractive session with a TTY (shells)
--rmRemove the container when it exits
-p <host>:<container>Publish a port to the host
-v <src>:<dst>[:ro]Named volume or bind mount, optionally read-only
-e KEY=value / --env-fileEnvironment variables
--nameAssign a stable container name
--networkAttach to a network
--restartno, on-failure, always, unless-stopped
-u <uid>:<gid>Run as a specific user
-w <dir>Working directory inside the container
--memory / --cpusResource limits
--platformTarget architecture, e.g. linux/arm64

📚 Resources

  • Official documentation
  • Docker Desktop (Mac, Linux, Windows)
  • CLI reference
  • Dockerfile reference
  • Compose file reference
  • Awesome Compose — example projects