[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571987-105":53,"doc-detail-571987-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-cli-cheat-sheet","Docker CLI Cheat Sheet","","Docker CLI Cheat Sheet summarizes how Docker packages applications into lightweight containers and how to install and use Docker Desktop across Mac, Linux, and Windows. It introduces Docker images, Docker Hub for finding and sharing images, and key commands for building images from Dockerfiles, listing and pruning images. It also covers essential container operations like running containers, mapping ports, managing start/stop, viewing logs, inspecting containers, and checking resource usage.",{"@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":51,"@type":70,"position":76},"https://docshare.wps.com/template/general/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/docker-cli-cheat-sheet/571987/",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-cli-cheat-sheet/571987.png","ImageObject",442,249,{"name":88,"@type":89},"How to eat","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-22","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},"What does Docker provide and why use containers?","Question",{"text":109,"@type":110},"Docker packages and runs applications in lightweight containers that are isolated and secure. Containers include everything needed to run the app, enabling consistent behavior across environments and supporting many containers on one host.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How do you build and manage Docker images from the command line?",{"text":114,"@type":110},"Use docker build -t \u003Cimage_name> . to build from a Dockerfile, docker build --no-cache when needed, docker images to list local images, docker rmi \u003Cimage_name> to delete, and docker image prune to remove unused images.",{"name":116,"@type":107,"acceptedAnswer":117},"How do you run a container and expose its ports?",{"text":118,"@type":110},"Run a container with docker run --name \u003Ccontainer_name> \u003Cimage_name>. To publish ports to the host, use docker run -p \u003Chost_port>:\u003Ccontainer_port> \u003Cimage_name>.","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},571987,1792104512,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":50,"category_name":51,"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":9,"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":4},962093541613,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","CLI Cheat Sheet  \nDocker provides the ability to package and run an application in a loosely isolated environment called a container. The isolation and security allows you to run many containers simultaneously on a given host. Containers are lightweight and contain everything needed to run the application, so you do not need to rely on what is currently installed on the host. You can easily share containers while you work, and be sure that everyone you share with gets the same container that works in the same way.  \nINSTALLATION  \nDocker Desktop is available for Mac, Linux and Windows  \n[https://docs.docker.com/desktop](https://docs.docker.com/desktop)  \nView example projects that use Docker  \n[https://github.com/docker/awesome-compose](https://github.com/docker/awesome-compose)  \nCheck out our docs for information on using Docker  \n[https://docs.docker.com](https://docs.docker.com)  \nIMAGES  \nDocker images are a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.  \n\n| Build an Image from a Dockerfile\u003Cbr>docker build-t \u003Cimage_name> . |\n| --- |\n| Build an Image from a Dockerfile without the cache\u003Cbr>docker build -t \u003Cimage_name> .–no-cache |\n| List local images\u003Cbr>docker images |\n| Delete an Image\u003Cbr>docker rmi \u003Cimage_name> |\n| Remove all unused images\u003Cbr>docker image prune |\n\nDOCKER HUB  \nDocker Hub is a service provided by Docker for finding and sharing container images with your team. Learn more and find images at [https://hub.docker.com](https://hub.docker.com)  \n\n| Login into Docker\u003Cbr>docker login -u \u003Cusername> |\n| --- |\n| Publish an image to Docker Hub\u003Cbr>docker push \u003Cusername>/\u003Cimage_name> |\n| Search Hub for an image\u003Cbr>docker search \u003Cimage_name> |\n| Pull an image from a Docker Hub\u003Cbr>docker pull \u003Cimage_name> |\n\nGENERAL COMMANDS  \n\n| Start the docker daemon\u003Cbr>docker -d |\n| --- |\n| Get help with Docker. Can also use –help on all subcommands\u003Cbr>docker --help |\n| Display system-wide information\u003Cbr>docker info |\n\nCONTAINERS  \nA container is a runtime instance of a docker image. A container will always run the same, regardless of the infrastructure. Containers isolate software from its environment and ensure that it works uniformly despite differences for instance between development and staging.  \n\n| Create and run a container from an image, with a custom name:\u003Cbr>docker run --name \u003Ccontainer_name> \u003Cimage_name> |\n| --- |\n| Run a container with and publish a container’s port(s) to the host.\u003Cbr>docker run -p \u003Chost_port>:\u003Ccontainer_port> \u003Cimage_name> |\n| Run a container in the background\u003Cbr>docker run -d \u003Cimage_name> |\n| Start or stop an existing container:\u003Cbr>docker start|stop \u003Ccontainer_name> (or \u003Ccontainer-id>) |\n| Remove a stopped container:\u003Cbr>docker rm \u003Ccontainer  name> |\n| Open a shell inside a running container:\u003Cbr>docker exec -it \u003Ccontainer  name> sh |\n| Fetch and follow the logs of a container:\u003Cbr>docker logs -f \u003Ccontainer_name> |\n| To inspect a running container:\u003Cbr>docker inspect \u003Ccontainer_name> (or \u003Ccontainer_id>) |\n| To list currently running containers:\u003Cbr>docker ps |\n| List all docker containers (running and stopped):\u003Cbr>docker ps --all |\n| View resource usage stats\u003Cbr>docker container stats |","cbCaivaYG1zB6i0K","https://ap.wps.com/l/cbCaivaYG1zB6i0K","pdf",535161,"English","# Installation\n## Docker Desktop\n## Documentation and examples\n# Images\n## Building, listing, and deleting images\n# Docker Hub\n## Login, push, search, pull\n# General commands\n## Daemon and help\n# Containers\n## Create and run containers\n## Ports, background mode, start/stop\n## Logs, shell, inspect, listing, stats","[{\"question\":\"What does Docker provide and why use containers?\",\"answer\":\"Docker packages and runs applications in lightweight containers that are isolated and secure. Containers include everything needed to run the app, enabling consistent behavior across environments and supporting many containers on one host.\"},{\"question\":\"How do you build and manage Docker images from the command line?\",\"answer\":\"Use docker build -t \\u003cimage_name\\u003e . to build from a Dockerfile, docker build --no-cache when needed, docker images to list local images, docker rmi \\u003cimage_name\\u003e to delete, and docker image prune to remove unused images.\"},{\"question\":\"How do you run a container and expose its ports?\",\"answer\":\"Run a container with docker run --name \\u003ccontainer_name\\u003e \\u003cimage_name\\u003e. To publish ports to the host, use docker run -p \\u003chost_port\\u003e:\\u003ccontainer_port\\u003e \\u003cimage_name\\u003e.\"}]","Docker CLI Cheat Sheet | PDF",1791924877]