[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573415-105":53,"doc-detail-573415-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-cheat-sheet-container-network-and-image-commands","Docker Cheat Sheet - Container, Network, and Image Commands","","Docker Cheat Sheet summarizes essential Docker CLI commands for day-to-day container operations. It covers container management (listing, creating, renaming, removing, logs, events, updates, ports, process inspection, stats, diffs, and file copy), networking tasks (listing, removing, inspecting, connecting, and disconnecting networks), general management (login/logout, inspect/version/info, system prune), running containers (detached and interactive modes, naming, port mapping, lifecycle controls, and exec/attach), image management (build/pull/push/tag/rmi, save/load, import/commit/history, pruning), and Docker plugin management (enable/disable/create/inspect/remove).",{"@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":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-cheat-sheet-container-network-and-image-commands/573415/",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-container-network-and-image-commands/573415.png","ImageObject",442,249,{"name":88,"@type":89},"Stanford","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-16","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},"Which Docker commands help you inspect and manage running containers?","Question",{"text":108,"@type":109},"Use docker ps to list running containers. Use docker logs to view logs, docker stats for live resource usage, and docker top to see running processes inside a container.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"How do you connect a container to a Docker network and manage networks?",{"text":113,"@type":109},"List networks with docker network ls. Inspect with docker network inspect, then connect using docker network connect. Disconnect with docker network disconnect and remove with docker network rm.",{"name":115,"@type":106,"acceptedAnswer":116},"What Docker commands are used for building, tagging, and managing images?",{"text":117,"@type":109},"Build images with docker build (including -f for a Dockerfile and -t for tag). Retrieve images with docker pull, publish with docker push, tag with docker tag, and remove with docker rmi. Save/load archives using docker save and docker load.","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},573415,1792087677,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":50,"category_name":51,"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":9,"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":4},2336477552062,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Docker Cheat Sheet  \nContainer Management  \n\n| docker ps | List the running containers. |\n| --- | --- |\n| docker ps -a | List all the containers, both running and stopped. |\n| docker create [image] | Create a container without starting it. |\n| docker create -it [image] | Create an interactive\u003Cbr>container with pseudo-TTY. |\n| docker rename\u003Cbr>[container] [new-name] | Rename a container. |\n| docker rm [container] | Remove a stopped container. |\n| docker rm -f [container] | Force remove a container, even if it is running. |\n| docker logs [container] | View logs for a running container. |\n| docker logs -f - -until=[interval] [container] | Retreive logs before aspeciﬁc point in time. |\n| docker events [container] | View real time events for a container. |\n| docker update [container] | Update the conﬁguration of a container. |\n| docker port [container] | Show port mapping for a container. |\n| docker top [container] | Show running processes in a container. |\n| docker stats [container] | Show live resource usage statistics for a container. |\n| docker diff [container] | Show changes to ﬁles or directories on the ﬁlesystem. |\n| docker cp [file-path] CONTAINER: [path] | Copy a local ﬁle to\u003Cbr>a directory in a container. |\n\nNetworking  \ndocker network ls View available networks.  \n\n| docker network rm [network] | Remove a network. |\n| --- | --- |\n| docker network inspect [network] | Show information about a network. |\n| docker network connect [network] [container] | Connect a container to a network. |\n| docker network disconnect [network] [container] | Disconnect a container from a network. |\n\nGeneral Management  \n\n| docker | login | Log in to a Docker registry. |\n| --- | --- | --- |\n| docker | logout | Log out of a Docker registry. |\n| docker | inspect [object] | Show low-level information about an object. |\n| docker | version | Show the version of the local Docker installation. |\n| docker | info | Display information about the system. |\n| docker | system prune | Remove unused images, containers, and networks. |\n\nRunning a Container  \n\n| docker run [image][command] | Run a command in a\u003Cbr>container based on an image. |\n| --- | --- |\n| docker run - -name\u003Cbr>[container-name] [image] | Create, start, and name a container. |\n| docker run -p [host]:[container-port] [image] | Map a host port to a container port. |\n| docker run - -rm [image] | Run a container and remove it after it stops. |\n| docker run -d [image] | Run a detached\u003Cbr>(background) container. |\n| docker run -it [image] | Run an interactive process, e.g., a shell, in a container. |\n| docker start [container] | Start a container. |\n| docker stop [container] | Stop a container. |\n| docker restart [container] | Stop a container and start it again. |\n| docker pause [container] | Pause processes in a running container. |\n| docker unpause [container] | Unpause processes in a running container. |\n| docker wait [container] | Block input until the container stops. |\n| docker kill [container] | Send a SIGKILL signal to stop a container. |\n| docker attach [container] | Attach local standard input, output and error . |\n| docker exec -it [container] [shell] | Run a shell inside a running container. |\n\nImage Management  \n\n| docker build [dockerfile-path] | Create an image from a Dockerﬁle. |\n| --- | --- |\n| docker build . | Build an image using the ﬁles from the current path. |\n| docker build -t [name]:[tag] [location] | Create an image from a Dockerﬁle and tag it. |\n| docker build -f [file] | Specify a ﬁle to build from. |\n| docker pull [image] | Pull an image from a registry. |\n| docker push [image] | Push an image to a registry. |\n| docker import [url/file] | Create an image from atarball. |\n| docker commit\u003Cbr>[container] [new-image] | Create an image from a container. |\n| docker tag [image][image]:[tag] | Tag an image. |\n| docker images | Show all locally stored top level images. |\n| docker history [image] | Show history for an image. |\n| docker rmi [image] | Remove an image. |\n| docker lo","cbCaishqchgOeUXt","https://ap.wps.com/l/cbCaishqchgOeUXt","pdf",65092,"English","# Container Management\n## Networking\n## General Management\n## Running a Container\n## Image Management\n## Plugin Management","[{\"question\":\"Which Docker commands help you inspect and manage running containers?\",\"answer\":\"Use docker ps to list running containers. Use docker logs to view logs, docker stats for live resource usage, and docker top to see running processes inside a container.\"},{\"question\":\"How do you connect a container to a Docker network and manage networks?\",\"answer\":\"List networks with docker network ls. Inspect with docker network inspect, then connect using docker network connect. Disconnect with docker network disconnect and remove with docker network rm.\"},{\"question\":\"What Docker commands are used for building, tagging, and managing images?\",\"answer\":\"Build images with docker build (including -f for a Dockerfile and -t for tag). Retrieve images with docker pull, publish with docker push, tag with docker tag, and remove with docker rmi. Save/load archives using docker save and docker load.\"}]","Docker Cheat Sheet - Container, Network, and Image Commands | PDF",1791939397]