Tool.Yun
Uirlisí úsáideacha do fhorbróirí
Áireamhán Amúchta
Bileog Cheat Bash
Bileog Cheat Comhréire JSONPath
Bileog Cheat Comhréire XPath
Bileog Cheat Docker
Bileog Cheat Jq
Bileog Cheat K8s
Bileog Cheat Markdown
Bileog Cheat Nano
Bileog Cheat Ordú Scáileáin
Bileog Cheat Ordú Tmux
Bileog Cheat Ordú Zellij
Bileog Cheat Ordú chmod
Bileog Cheat Powershell
Bileog Cheat Regex Choitianta
Bileog Cheat Roghnóirí CSS
Bileog Cheat Tiomnais Seimeantach Git
Bileog Cheat VIM
Bileog caimiléir Git
Bileog cheat Docker Compose
Bileog cheat Docker SWARM
Bileog cheat Dockerfile
Bileog cheat Regex
Bileog cheat Sed
NBileog Cheat ginx
Flipper Bonn
Roghnóir Cártaí
Rollóir Dísle
Roth an fhortún
Argon2 Hasher
Bcrypt
Beart Niceware go Frása Pasfhocail
Cripteagrafaíocht AOIS
Criptigh / díchriptiú téacs
Criptithe cruinneachán Ansible a dhíchriptiú
Criptiú Comhaid PGP
Criptiú PGP
Criptiú RSA
Criptiú Teaghrán Jasypt
Eochairghiniúint PGP
Gineadóir CSR
Gineadóir JWT
Gineadóir péire eochracha Ed25519
Gineadóir péirí eochracha ECDSA
Gineadóir teastais X509
Hais Comhaid
Hais téacs
Hmac gineadóir
Ionchódóir/Díchódóir Bech32
Parsálaí JWT
Parsálaí SAML
Parsálaí Teastais/Eochrach
Paseto/PASERK Poiblí/Príobháideach
Paseto/PASERK Áitiúil
RSA gineadóir eochair péire
Roinnt Rúnda Shamirs
Sínitheoir agus Fíoraitheoir RSA/DSA/ECDSA
Tiontaire Teastais SSL
Áireamhán CRC
Bailíochtóir GTIN
Díchódóir Cód QR
Gineadóir Faisnéise Teagmhála QR
Gineadóir barrachóid
Gineadóir cóid QR
Gineadóir cóid QR WiFi
Léitheoir Barrachóid
tools.epc-qrcode-generator.name
Bailíochtóir Cumadóireachta Docker
Docker Compose chuig comhad .env
Docker Compose go Quadlets
Docker compose go kubernetes
Docker iniúchta le haghaidh rith Docker
Déantóir Cumadóireachta Docker Traefik
Gineadóir Lipéad Dockerfile
Gineadóir RBAC Kubernetes
Lipéid Docker Pangolin
Rith Docker go Kubernetes
Rith Docker go Quadlets
Rith docker chuig tiontaire cumadóireachta Docker
Tiontaire Formáide Docker Compose
Tiontaire rith Docker Compose go Docker
Íoslódálaí Íomhánna Docker
Aláram Ama
Aláram Cron/Laethanta na Seachtaine
Comhaireamh síos
Cróniméadar
Cumaisc iCal
Cén Lá?
Gineadóir ICAL
Parsálaí Comhad ICAL
Tiontaire Crios Ama
Tiontaire Uimhreacha Seachtaine
Tiontaire dáta-am
Áireamhán Dáta+Fad
Áireamhán ETA
Áireamhán Fad
Áireamhán Laethanta
Áireamhán TTL
Ríomhaire Aclaíochta
Tiontaire Aonaid Achar
Tiontaire Aonaid Brú
Tiontaire Aonaid Fad
Tiontaire Aonaid Fuinnimh
Tiontaire Aonaid Fórsa
Tiontaire Aonaid Mais
Tiontaire Aonaid Toirte
Tiontaire Aonaid Uillinne
Tiontaire Cumhachta
Tiontaire Fuinnimh Bia
Tiontaire Luas
Tiontaire Luasghéaraithe
Tiontaire Minicíochta
Tiontaire Ráta Sreafa Toirte
Tiontaire Réimíreanna SI
Tiontaire Soilsiúcháin
Tiontaire teochta
Aibhsitheoir Cód/Scripteanna
Amaire Pomodoro
Bréigeoir Sonraí
CSS/JS Áilleachtú & Laghdaigh
Ceo Javascript
Dí-chomhbhrúiteoir/Díphacáileoir Javascript
Eagarthóir orduithe Cli
Gineadóir Favicon
Gineadóir GitIgnore
Gineadóir Mailto
Gineadóir Paraiméadair SQL
Gineadóir Rúnda Django
Gineadóir Scripteanna Tástála Ualaigh K6
Gineadóir Tréithe Git
Gineadóir Tábla Bunachar Sonraí
Json go Protobuf
Json go SQL INSERT
Json go Typescript
Miniféir SQL
Oscail gineadóir meta graf
SQL prettify agus formáid
Scoilteoir Comhad
Stacktrace níos deise
Tiontaire Comhad HEX
Tiontaire Lua
Tiontaire Lúb
Tástálaí API
Tástálaí Chomhéadain Swagger
Tástálaí Picomatch
Tástálaí Éalaithe ANSI
Tógálaí Cruthaithe Bunachar Sonraí
Tógálaí Teaghrán Ceangail Bunachar Sonraí
Áillitheoir Javascript
Éalaitheoir Teaghrán
Anailíseoir Tuairiscí DMARC
Bileog Cheat Sreangaithe RJ45 Cat6
Brathadóir Cineál Comhaid
Brathadóir/Díchódóir Tacair Charachtair Téacs
Consól Port Sraitheach
Cuardaitheoir airíonna LDAP ActiveDirectory
Díchódóir EMV TLV
Díchódóir Idirbhirt ETH
Díchódóir Safelink Outlook
Díchódóir Url Comhroinnte SharePoint
Eastóscóir aitheantais calóga sneachta
Faisnéis eochairchóid
Gineadóir TCPDump
Ionchódóir/Díchódóir Heicsidheachúlach
Leathnaitheoir URLanna Gearra
Léitheoir comhaid Parquet
Mascóir sonraí íogaire
Parsálaí Fianán
Parsálaí MSG Outlook
Parsálaí Ríomhphoist
Parsálaí Ríomhphoist Preabtha
Parsálaí URL
Tiontaire GZip/Díbhoilscithe
Tiontaire IdRéadaí MongoDB
Tiontaire Ionchódaithe MIME
Tiontaire Meán-Endian
Tiontaire SMART Raw
Tiontaire uimhir snámhphointe
Tástálaí DNS
Tástálaí HTTPS
Tástálaí Ilphlandúcháin DNS
Tástálaí Picteil Marbh
Tógálaí Ordú Nmap
Tógálaí URL
Áireamhán Friotóra
键盘测试器
Gineadóir Cód PIN
Gineadóir Frása Pas
Gineadóir NanoIDanna
Gineadóir Pasfhocal Diceware
Gineadóir UUIDs
Gineadóir comhartha
Gineadóir cóid OTP saor in aisce,
Gineadóir pasfhrása BIP39
Gineadóir uimhreacha
Gineadóir uimhreacha randamacha
Tiontaire UUID
Cineálacha MIME
Cóid stádais HTTP
Déantóir Blúirí Cuardaigh Téacs Url
Eagarthóir HTML WYSIWYG
Eolas gléas
Gabhálaí Url
Gineadóir Grádáin CSS
Gineadóir URL UTM
Gineadóir áitsealbhóirí SVG
Glantóir Html
Glantóir URL
HTML go XHTML
HTML go sonraí
Ionchódaigh/díchódaigh teaghráin formáidithe URL
Laghdaitheoir HTML
Parsálaí úsáideora-ghníomhaire
Roth Dathanna
Seiceálaí Codarsnachta Datha
Slabhra sluga a chruthú
Tiontaire Aonad CSS
Tiontaire CSS XPath
Tiontaire datha
Tiontaire picteilín REM
Áillitheoir CSS
Áillitheoir Html
Éalú aonáin HTML
Íomhá go CSS
Anailíseoir Méid Json
CSV go JSON
Cumaisc JSON
Cód Json go PHP
Difríocht JSON
Eagarthóir JSON
Iarratas Json
JSON Leacaitheoir/Díleacaitheoir
JSON Linter
JSON ceartaigh agus formáid
JSON chuig an Eintiteas Java
JSON go .env
JSON go C#
JSON go CSV
JSON go Go
JSON go MessagePack
JSON go Sonraí
JSON go TOML
JSON go TS
JSON go XML
JSON go réad
Json go PHP-Array
Json go Python
Json go SQL DDL
Json go Scéim
Laghdaigh JSON
Máistir sórtála JSON
ObjGen go JSON
PHP-Eagar go JSON
Pacáiste Teachtaireachta chuig JSON
Tiontaire JS go JSON
Tiontaire JSON go JS
Tiontaire JSON go YAML
Tiontaire teaghrán Json
Tástálaí Jq/JSONPath
tools.json-patch.name
Éalú Json/Unescape
Anailíseoir neart pasfhocal
Bileog Cheat ZPool
Cuardach seoladh MAC
Díchódóir ARPA
Díchódóir X-VR-SpamCause
Fiosrúcháin DNS
Forbróir raon IPv4
Formáideoir Nginx
Formáideoir Orduithe Shell
Geoshuíomh IP
Gineadóir Crontab
Gineadóir Cumraíochta Wireguard
Gineadóir DMARC DNS
Gineadóir DNS BIMI
Gineadóir DNS DKIM
Gineadóir DNS PTR
Gineadóir DNS SPF
Gineadóir FStab
Gineadóir HTAccess
Gineadóir Htpasswd/htaccess
Gineadóir Iptables
Gineadóir LogRotate Apache
Gineadóir Option43
Gineadóir Orduithe Múchta
Gineadóir Ordú Curl
Gineadóir Ordú UFW
Gineadóir Rsync
Gineadóir WPA PSK
Gineadóir port randamach
Gineadóir seoladh MAC
Gineadóir údaraithe bunúsach
IPv4-6/IPRange/CIDR in IPRange/CIDR/IPMask
IPv6 gineadóir ULA
Iarratais DNS/RDAP Cloudflare
Liosta Fo-líonra IPv4
Línearaitheoir Orduithe Shell
Mo Sheoladh IP
Neart Pasfhocal Zxcvbn
Ping
Seiceálaí DNSBL
Seiceálaí Whois
Sláintitheoir HAR
Slánuimhreacha chuig IPv4/IPv6
Tiontaire Punycode
Tiontaire Seoladh MAC
Tiontaire seoladh IPv4
Tiontaire seoladh Ipv6
Tástálaí Calafoirt TCP/UDP
Tástálaí Micreafóin
Tástálaí soicéad gréasáin
Uimhreacha Poirt
gineadóir líne ordaithe firewalld
tools.restic-command-generator.name
tools.url-redirection-checker.name
Áireamhán Chmod
Áireamhán Eisiaimh Fo-líonraí IP
Áireamhán Fo-líonra Amhairc
Áireamhán HDD
Áireamhán Iontaofachta RAID
Áireamhán RAID
Áireamhán RAID ZPOOL
Áireamhán Raoin IP ó CIDR Ipv4/6
Áireamhán Raon IPv4/6 go CIDR(anna)
Áireamhán Ráta Aistrithe Sonraí
Áireamhán fo-líonra Ipv6
Áireamhán subnet IPv4
Íoslódálaí il-naisc
Údarú SIP
Difríocht Marcáil anuas
Eagarthóir Markdown
Epub go Markdown
Gineadóir Tábla Marcála
Gineadóir toc Markdown
Greamaigh mar Markdown
HTML le marcáil síos
Lorem Ipsum Markdown
Marcáil síos ar shonraí
Marcáil síos go DOCX
Marcáil síos go HTML
Marcáil síos go Téacs
Réamhamharc marcála síos
tools.markdown-format-converter.name
Áilleoir Tábla Marcála
Amharcléiritheoir Cuar Triantánach/Cothromóideach
Measúnaí mata
OCR Matamaitice
Tiontaire Formáidí Matamaitice
Áireamhán Dénártha
Áireamhán leideanna
Comhbhrúiteoir PDF
Comhcheanglóir Pdf
Eastóscóir Téacs PDF
HTML go PDF
Pdf Criptithe
Pdf Eastóscóir Leathanach
Pdf Línearú/FastWeb
Pdf a dhíchriptiú agus a dhíghlasáil
Seiceáil sínithe PDF
Tógálaí Léirithe Cron
Bailíochtóir Luhn
Bailíochtóir agus Parsálaí ISBN
Bailíochtóir agus parsálaí IBAN
Bailíochtú Uimhreacha CBL
Comhoiriúnacht ceadúnas bogearraí
Cuardach Unicode
Cuardaitheoir Cód Tíre ISO 3166
Cuardaitheoir ISO 639
Foclóir Ar Líne
Mínigh an tOrdú Shell
Parsálaí agus formáidí fón
Seiceálaí Cárta Creidmheasa
Tiontaire Airgeadra
Tiontaire Cás Uachtarach RMB
Tiontaire Féilire
Treoirlínte Soilsithe IES
Áireamhán BMI
Áireamhán Luas Rith
Áireamhán SLA
TOML Linter
TOML go JSON
TOML go YAML
Csv go Sonraí
Excel go sonraí
Gineadóir ULID
Ionchódóir/díchódóir eagar heicsidheachúlach Base64
Ionchódóir/díchódóir teaghrán Base64
Normalaitheoir ríomhphoist
Ríomhaire Ídiú Fuinnimh agus Costais
Tiontaire Aonad Go Leor
Tiontaire Aonaid Stórála Sonraí
Tiontaire Carachtair Unicode go Eintitis Java
Tiontaire Comhordanáidí Geografacha
Tiontaire Formáid Athróg Comhdhlútha
Tiontaire airíonna
Tiontaire bonn slánuimhir
Tiontaire comhad base64 íoslódáil
Tiontaire dBm mW
Tiontaire uimhreacha Rómhánacha
Torrent go Maighnéad
Téacs go Unicode
Téacs go dénártha UTF-8
Tógálaí tagarmhairc
Áireamhán Cóimheas Gnéithe
Áireamhán achair gheografaigh
Áireamhán céatadánach
Aimsitheoir Línte Dúblacha
Aistritheoir Téacs
Athsholáthar Téacs Cliste agus Briseadh Líne
Bain téacs as HTML
Comhroinnteoir Nasc Sóisialta
Comparadóir Liostaí
Difríocht téacs
Déan Comparáid Clónna
Focail Ar Leith
Formáideoir Unicode
Gineadóir Ordú Sed
Gineadóir Sleachta
Gineadóir Téacs Ealaíne ASCII
Gineadóir an-mhaith
Gineadóir/Meirge Zalgo
Ionchódóir/Díchódóir Comhartha GPT
JSON go TOON
Liosta tiontaire
Léaráid Struchtúr Fillteán
Léitheoir RSVP
Meastóir Comharthaí GPT
Onnmhaireoir maighdeana mara
Pacáil comhaid le haghaidh AI
Roghnóir Emoji
Roghnóir Líní Rándamach
Scoilteoir Pras AI
Scrambalóir slabhra
Seiceálaí I agus L
Staitisticí téacs
TOON go JSON
Tabáil go Spásanna
Tiontaire Cód Morse
Tiontaire Leagan Amach Méarchláir
Tiontaire Rún
Tiontaire cás
Tástálaí Regex
Téacs chuig Ainmneacha Unicode
Téacs go aibítir NATO
Unicode go GSM-7
Áireamhán Levenshtein
Íomhá go hEalaín ASCII
Formáidiú XML
Linter XML
ObjGen go HTML
Tástálaí XPath
Tástálaí XSLT
XML go JSON
Cumasc YAML
Tiontaire YAML go JSON
YAML Leacaitheoir/Díleacaitheoir
YAML go TOML
YAML prettify agus formáid
Athraitheoir íomhá
Bain Cúlra na hÍomhá
Bain EXIF
Comparáid Íomhá
GIF go MP4
Inbhéartóir Dath Íomhá
Léitheoir cáilíochta EXIF/Meiteashonraí/GPS/JPEG íomhá
OCRúigh íomhá agus PDF
Réamhamharcóir SVG
Ríomhairigh íomhá
Taifeadta ceamara
Tiontaire Formáidí Íomhá
Tiontaire HEIC
Tiontaire ICO/PNG
Uiscemharc
Íomhá go SVG (potrace)

Bileog Cheat Docker

Meamram ordaithe 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