[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573413-105":53,"doc-detail-573413-en":126},{"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":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","docker-commands-a-cheat-sheet","DOCKER COMMANDS - A CHEAT SHEET","","A practical cheat sheet for Docker focused on building and managing container images and launching them in containers. It explains Docker’s role in supporting microservices, improving resource utilization, and speeding application delivery. The guide presents a command-line syntax pattern and key commands for listing images and containers, copying files, creating and inspecting containers, fetching logs, controlling container timing (start/stop/restart/prune), naming containers, and viewing runtime details via inspect, stats, and top.",{"@graph":63,"@context":118},[64,80,101],{"@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-commands-a-cheat-sheet/573413/",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-commands-a-cheat-sheet/573413.png","ImageObject",442,249,{"name":88,"@type":89},"Adam","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-18","2026-10-14",true,{"@type":98,"interactionType":99,"userInteractionCount":79},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"What is Docker used for in containerization?","Question",{"text":108,"@type":109},"Docker builds and manages compute images and launches them in containers. It also supports microservices and helps applications run consistently across environments.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"How do you list Docker images and containers?",{"text":113,"@type":109},"Use the listing pattern such as `docker images ls` and `docker container ls` to view available images and container details like container IDs.",{"name":115,"@type":106,"acceptedAnswer":116},"Which commands help manage and monitor a container at runtime?",{"text":117,"@type":109},"Use `docker container start`, `stop`, `restart`, and `prune` for lifecycle control. For monitoring and inspection, use `docker container inspect`, `docker container stats`, and `docker container top`.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},573413,1792015525,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":79,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":79,"language":135,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":61,"update_tm":139,"read_time":73},1374404737137,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","DOCKER COMMANDS: A CHEAT SHEET  \nContainerization technologies have revolutionized the software development landscape. By allowing developers to package applications and their dependencies into isolated environments known as containers, they have simplified the development process, enabling applications to run consistently across various environments. Docker is one such example of a leading platform in the containerization space.  \nWhat does Docker do?  \nDocker’s purpose is to build and manage compute images and to launch them in a container. Docker enables managing microservices, facilitating efficient resource utilization, and accelerating application delivery, making it a vital tool for modern DevOps practices.  \nHere’s a cheat sheet on the top Docker commands to know and use.  \n(This is part ofour Docker Guide. Use the right-hand menu to navigate.)  \nImages and containers  \nThe docker command line interface follows this pattern: docker \u003CCOMMAND>  \ndocker images  \ndocker container  \nThe docker images and container commands grant access to the images and containers. From here, you are permitted to do something with them, hence:  \ndocker images \u003CCOMMAND>  \nDocker container \u003CCOMMAND>  \nThere are some basic docker commands:  \n is lists the resources.  \n cp copies files/folders between the container and the local file system.  \n create creates new container.  \n diff inspects changes to files or directories in a running container.  \n logs fetches the logs of a container.  \n pause pauses all processes within one or more containers.  \n rename renames a container.  \n run runs a new command in a container.  \n start starts one or more stopped containers.  \n stop stops one or more running containers.  \n stats displays a livestream of containers resource usage statistics.  \n top displays the running processes of a container.  \nView resources with ls  \ndocker images ls  \ndocker container ls  \nFrom the container ls command, the container id can be accessed (first column) .  \nControl timing with start, stop, restart, prune  \n start starts one or more stopped containers.  \n stop stops one or more running containers.  \n restart restarts one or more containers.  \n prune (the best one!) removes all stopped containers.  \ndocker container stop \u003Ccontainer id>  \ndocker container start \u003Ccontainer id>  \ndocker container restart \u003Ccontainer id> docker container prune \u003Ccontainer id>  \nName a container  \ndocker run -d -name myfirstcontainer  \nView vital information: Inspect, stats, top  \ndocker container inspect \u003Ccontainer id>  \ndocker container top \u003Ccontainer id>  \ndocker container stats \u003Ccontainer id>  \n stats displays a live stream of container(s) resource usage statistics  \ntop displays the running processes of a container:  \ninspect displays detailed information on one or more containers. With inspect, a JSON is returned detailing the name and states and more of a container.  \nAdditional resources  \nFor more on this topic, there’s always the Docker documentation , the BMC DevOps Blog , and these articles:  \n Getting Started with Containers and Microservices for Enterprise Leaders  \n How To Introduce Docker Containers in The Enterprise  \n Docker Management Tips  \n Docker Monitoring: How to Monitor Containers and Microservices  \n Containers Aren’t Always the Solution","cbCaieBg6uRk2u1i","https://ap.wps.com/l/cbCaieBg6uRk2u1i","pdf",919531,"English","# Images and containers\n## View resources with ls\n# Control timing with start, stop, restart, prune\n# Name a container\n# View vital information: Inspect, stats, top\n# Additional resources","[{\"question\":\"What is Docker used for in containerization?\",\"answer\":\"Docker builds and manages compute images and launches them in containers. It also supports microservices and helps applications run consistently across environments.\"},{\"question\":\"How do you list Docker images and containers?\",\"answer\":\"Use the listing pattern such as `docker images ls` and `docker container ls` to view available images and container details like container IDs.\"},{\"question\":\"Which commands help manage and monitor a container at runtime?\",\"answer\":\"Use `docker container start`, `stop`, `restart`, and `prune` for lifecycle control. For monitoring and inspection, use `docker container inspect`, `docker container stats`, and `docker container top`.\"}]","DOCKER COMMANDS - A CHEAT SHEET | PDF",1791939392]