[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571986-105":53,"doc-detail-571986-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","docker-cheat-sheet-quick-reference","Docker Cheat Sheet - quick reference","","Docker Cheat Sheet provides a compact, command-focused reference for installing Docker Engine or Docker Desktop and for performing common day-to-day tasks. It covers container lifecycle operations (run, ps, stats, logs, stop/start, remove), executing commands inside running containers, building and managing images, interacting with container registries (login/push/pull/search), and using system commands. It also includes Docker Compose basics and common Dockerfile instructions, plus notes and example configuration structure.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/docker-cheat-sheet-quick-reference/571986/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/docker-cheat-sheet-quick-reference/571986.png","ImageObject",442,249,{"name":88,"@type":89},"I feel Different","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How can I verify that Docker is installed correctly?","Question",{"text":109,"@type":110},"Run the command docker run hello-world to confirm the installation and that containers can start successfully.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"Which commands list running containers and all containers?",{"text":114,"@type":110},"Use docker ps to list running containers and docker ps -a to list all containers, whether running or stopped.",{"name":116,"@type":107,"acceptedAnswer":117},"How do I build and run services with Docker Compose?",{"text":118,"@type":110},"Use docker compose up to create and start containers; add --build to rebuild images before starting, or use -d to run in the background.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},571986,1792015513,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":73,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":9},962093541761,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Docker Cheat Sheet  \n\n| Installation |  |  |  |  |\n| --- | --- | --- | --- | --- |\n| On Linux, install Docker Engine: [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)\u003Cbr>On Windows or macOS, install Docker Desktop: [https://docs.docker.com/desktop/](https://docs.docker.com/desktop/)\u003Cbr>[Run this command to verify your installation:](Run this command to verify your installation: docker run hello-world)[ docker run hello-world](Run this command to verify your installation: docker run hello-world) |  |  |  |  |\n| Container commands |  |  |  |  |\n| Command |  |  |  | Description |\n| docker | run | \u003Cimage> |  | Create and run a new container |\n| docker | run | -p | 8080:80 \u003Cimage> | Publish container port 80 to host port 8080 |\n| docker | run | -d | \u003Cimage> | Run a container in the background (detached) |\n| docker | run | -v | \u003Chost>:\u003Cpath> \u003Cimage> | Mount a host directory to a path in the container |\n| docker run -v \u003Chost>:\u003Cpath>: ro \u003Cimage> Mount the directory as a readonly volume |  |  |  |  |\n| docker | ps |  |  | List running containers |\n| docker | ps -a |  |  | List all containers (running or stopped) |\n| docker | stats |  |  | Display a live stream of resource usage statistics |\n| docker | logs -f \u003Ccontainer_name> |  |  | Follow the log stream of a container |\n| docker | stop \u003Ccontainer_name> |  |  | Stop a running container |\n| docker | start \u003Ccontainer_name> |  |  | Start a stopped container |\n| docker | rm \u003Ccontainer_name> |  |  | Remove a container |\n| Executing commands in a container |  |  |  |  |\n| Command |  | Description |  |  |\n| docker exec \u003Ccontainer_name> \u003Ccommand> Execute a command in a running container |  |  |  |  |\n| docker exec -it \u003Ccontainer_name> bash Open an interactive shell in a running container |  |  |  |  |\n| Image commands |  |  |  |  |\n| Command |  |  |  | Description |\n| docker | build -t \u003Cimage> . |  |  | Build and tag a new image from a Dockerﬁle |\n| docker | images |  |  | List local images |\n| docker | rmi \u003Cimage> |  |  | Remove an image |\n| docker | image prune |  |  | Remove all unused images |\n\n| Container registry commands |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- |\n| Command |  |  |  |  | Description |\n| docker | login |  |  |  | Login to Docker Hub |\n| docker | login \u003Cserver> |  |  |  | Login to another container registry |\n| docker | logout [\u003Cserver>] |  |  |  | Log out of a container registry |\n| docker | push \u003Cimage> |  |  |  | Upload an image to a registry |\n| docker | pull \u003Cimage> |  |  |  | Download an image from a registry |\n| docker | search \u003Cimage> |  |  |  | Search Docker Hub for images |\n| System commands |  |  |  |  |  |\n| Command |  |  |  |  | Description |\n| docker | system | df |  |  | Show Docker disk usage |\n| docker | system | prune |  |  | Remove unused data |\n| docker | system | prune |  | -a | Remove all unused data |\n| docker | info |  |  |  | Display system-wide information |\n| Docker Compose |  |  |  |  |  |\n| Command |  |  |  |  | Description |\n| docker | compose |  | up |  | Create and start containers |\n| docker | compose |  | up -d |  | Create and start containers in background |\n| docker | compose |  | up --build |  | Rebuild images before starting containers |\n| docker | compose |  | stop |  | Stop services |\n| docker | compose |  | down |  | Stop and remove containers and networks |\n| docker | compose |  | ps |  | List running containers |\n| docker | compose |  | logs |  | View the logs of all containers |\n| docker | compose |  | logs \u003Cservice> |  | View the logs of a speciﬁc service |\n| docker | compose |  | logs -f |  | View and follow the logs |\n| docker | compose |  | pull |  | Pull the latest images |\n| docker | compose |  | build |  | Build or rebuild services |\n| docker | compose |  | build --pull |  | Pull latest images before building |\n\n© Nth Root Software Consultancy. Licensed under CC BY-ND 4.0  — Version: August 12, 2026 — Find more cheat sheets at [nth-root.nl/en/cheat-sheets](nth-root.nl/en/cheat","cbCaikisXhZuJbuQ","https://ap.wps.com/l/cbCaikisXhZuJbuQ","pdf",85048,"English","# Installation\n# Container commands\n# Executing commands in a container\n# Image commands\n# Container registry commands\n# System commands\n# Docker Compose\n# Dockerfile instructions\n# Docker Compose file reference","[{\"question\":\"How can I verify that Docker is installed correctly?\",\"answer\":\"Run the command docker run hello-world to confirm the installation and that containers can start successfully.\"},{\"question\":\"Which commands list running containers and all containers?\",\"answer\":\"Use docker ps to list running containers and docker ps -a to list all containers, whether running or stopped.\"},{\"question\":\"How do I build and run services with Docker Compose?\",\"answer\":\"Use docker compose up to create and start containers; add --build to rebuild images before starting, or use -d to run in the background.\"}]","Docker Cheat Sheet - quick reference | PDF",1791924876]