{"id":82911,"date":"2023-04-05T12:59:14","date_gmt":"2023-04-05T12:59:14","guid":{"rendered":"\/tutorials\/?p=82911"},"modified":"2025-04-26T02:57:56","modified_gmt":"2025-04-26T02:57:56","slug":"docker-cheat-sheet","status":"publish","type":"post","link":"\/in\/tutorials\/docker-cheat-sheet\/","title":{"rendered":"Docker Cheat Sheet: All the Most Essential Commands in One Place + Downloadable PDF"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Docker is a popular open-source platform that makes it easy to build, test, deploy, and manage containerized applications in a consistent, portable, or virtual environment such as VPS.<\/p><p class=\"wp-block-paragraph\">While a powerful tool in your development arsenal, learning the different Docker commands can take time and effort. New users often benefit from having a Docker cheat sheet readily at hand.<\/p><p class=\"wp-block-paragraph\">In this tutorial, we will explain how Docker works and provide the most common Docker commands, along with a downloadable cheat sheet for you to use.<\/p><p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Docker-Cheat-Sheet.pdf\" target=\"_blank\" rel=\"noopener\">Download free docker cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-docker-architecture\">Docker Architecture<\/h2><p class=\"wp-block-paragraph\">Docker architecture consists of five main components: server, client, container, image, and registry.<\/p><p class=\"wp-block-paragraph\"><strong>Docker Server<\/strong><\/p><p class=\"wp-block-paragraph\">A Docker server or Docker daemon is a program that runs in the background of your computer and manages Docker containers and images. When you use the Docker command line interface.<\/p><p class=\"wp-block-paragraph\">(CLI) to create, run, or manage containers, you interact with the Docker daemon.<\/p><p class=\"wp-block-paragraph\">The Docker daemon is an essential platform component that ensures containers can be started and stopped automatically when the system boots up.<\/p><p class=\"wp-block-paragraph\"><strong>Docker Client <\/strong><\/p><p class=\"wp-block-paragraph\">The Docker client lets users interact with the Docker daemon with its command-line interface (CLI). In simple terms, it&rsquo;s the main part of the Docker architecture for creating, managing, and running container applications.<\/p><p class=\"wp-block-paragraph\">When you use the Docker CLI to pass a command, the Docker client sends the command to the Docker daemon running on your computer, which then carries out the requested operation. The <a href=\"\/in\/tutorials\/how-to-install-docker-on-ubuntu\/\">Docker client can be installed<\/a> on any machine that needs to interact with the Docker daemon, including your local machine, a remote server, or a <a href=\"\/in\/tutorials\/what-is-vps-hosting\/\">virtual server<\/a>.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/in\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/VPS-hosting-banner.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/VPS-hosting-banner-300x88.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/VPS-hosting-banner-150x44.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/VPS-hosting-banner-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p class=\"wp-block-paragraph\"><strong>Docker Container<\/strong><\/p><p class=\"wp-block-paragraph\">A Docker container is a package that contains all the required prerequisites to run an application.<\/p><p class=\"wp-block-paragraph\">Containers are designed to be highly portable, meaning that they can be easily moved from one environment to another, such as from a developer&rsquo;s laptop to a testing environment or from a testing environment to a production environment.<\/p><p class=\"wp-block-paragraph\"><strong>Docker Image<\/strong><\/p><p class=\"wp-block-paragraph\">A Docker image is a preconfigured template that specifies what should be included in a Docker container. Usually, images are downloaded from websites like <a href=\"https:\/\/hub.docker.com\/\" target=\"_blank\" rel=\"noopener\">Docker Hub<\/a>. However, it&rsquo;s also possible to create a custom image with the help of Dockerfile.<\/p><p class=\"wp-block-paragraph\"><strong>Docker Registry<\/strong><\/p><p class=\"wp-block-paragraph\">The Docker registry is a central repository that stores and manages Docker images. It is a server-based system that lets users store and share Docker images with others, making it easy to distribute and deploy applications. The most notable Docker registry is Docker Hub.<\/p><h2 class=\"wp-block-heading\" id=\"h-docker-commands-cheat-sheet\">Docker Commands Cheat Sheet<\/h2><p class=\"wp-block-paragraph\">Now that you know how Docker functions, let&rsquo;s look at some of the most popular Docker command examples.<\/p><h3 class=\"wp-block-heading\" id=\"h-build-commands\">Build Commands<\/h3><p class=\"wp-block-paragraph\">Docker uses the build command for building images from a Docker file. Some of the most common commands include:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td>docker build<\/td><td>Builds an image from a                                                                                                                                                                  Dockerfile in the current directory                             <\/td><\/tr><tr><td>docker build https:\/\/github.com\/docker\/<br>rootfs.git#container:docker<\/td><td>Builds an image from a remote GIT repository                  <\/td><\/tr><tr><td>docker build -t imagename\/tag<\/td><td>Builds and tags an image for easier tracking<\/td><\/tr><tr><td>docker build https:\/\/yourserver\/file.tar.gz<\/td><td>Builds an image from a remote tar archive<\/td><\/tr><tr><td>docker build -t image:1.0<br> -&lt;&lt;EOFFROM busyboxRUN echo &ldquo;hello world&rdquo;EOF<\/td><td>Builds an image via a Dockerfile that is passed through STDIN<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-clean-up-commands\">Clean Up Commands<\/h3><p class=\"wp-block-paragraph\">To keep your system clean and save disk space, it&rsquo;s a great idea to <a href=\"\/in\/tutorials\/docker-remove-all-images-tutorial\/\">clean up unused images<\/a>, containers, and volumes. Check the commands below for more details:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker image prune<\/code><\/td><td>Clears an unused image<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker image prune -a<\/code><\/td><td>Clears all images that are not being used by containers<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker system prune<\/code><\/td><td>Removes all stopped containers, all networks not used by containers, all dangling images, and all build cache<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker image rm image<\/code><\/td><td>Removes an image<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker rm container<\/code><\/td><td>Removes a running container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker swarm leave<\/code><\/td><td>Leaves a swarm<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker stack rm stackname<\/code><\/td><td>Removes a swarm<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker volume rm $(docker volume ls -f dangling=true -q)<\/code><\/td><td>Removes all dangling volumes<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker rm $(docker ps -a -q)<\/code><\/td><td>Removes all stopped containers<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker kill $ (docker ps -q)<\/code><\/td><td>Stops all running containers<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-container-interaction-commands\">Container Interaction Commands<\/h3><p class=\"wp-block-paragraph\">Interact with your Docker container with the following common commands:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker start container<\/code><\/td><td><a href=\"\/in\/tutorials\/docker-start-a-container\/\">Starts a new container<\/a>                              <\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker stop container<\/code><\/td><td>Stops a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker pause container<\/code><\/td><td>Pauses a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker unpause container<\/code><\/td><td>Unpauses a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker restart container<\/code><\/td><td>Restarts a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker wait container<\/code><\/td><td>Blocks a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker export container<\/code><\/td><td>Exports container contents to a tar archive<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker attach container<\/code><\/td><td>Attaches to a running container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker wait container<\/code><\/td><td>Waits until the container is terminated and shows the exit code<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker commit -m &ldquo;commit message&rdquo; -a &ldquo;author&rdquo; container username\/image_name: tag<\/code><\/td><td>Saves a running container as an image<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker logs -ft container<\/code><\/td><td>Follows container logs<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker exec -ti container script.sh<\/code><\/td><td>Runs a command in a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker commit container image<\/code><\/td><td>Creates a new image from a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker create image<\/code><\/td><td>Creates a new container from an image<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-container-inspection-commands\">Container Inspection Commands<\/h3><p class=\"wp-block-paragraph\">Sometimes, you need to inspect your containers for quality assurance or troubleshooting purposes. These commands help you get an overview of what different containers are doing:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker ps<\/code><\/td><td>Lists all running containers<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker -ps -a<\/code><\/td><td>Lists all containers<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker diff container<\/code><\/td><td>Inspects changes to directories and files in the container filesystem<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker top container<\/code><\/td><td>Shows all running processes in an existing container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker inspect container<\/code><\/td><td>Displays low-level information about a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker logs container<\/code><\/td><td>Gathers the logs for a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker stats container<\/code><\/td><td>Shows container resource usage statistics<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-manage-images-commands\">Manage Images Commands<\/h3><p class=\"wp-block-paragraph\">Some of the most common image management commands include:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker image ls<\/code><\/td><td>Lists images<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker image rm mysql<\/code><\/td><td>Removes an image<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker tag image tag<\/code><\/td><td>Tags an image<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker history image<\/code><\/td><td>Displays the image history<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker inspect image<\/code><\/td><td>Displays low-level information about an image<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-run-commands\">Run Commands<\/h3><p class=\"wp-block-paragraph\">Docker uses the run command to create containers from provided images. The default syntax for this command looks like this:<\/p><pre class=\"wp-block-preformatted\">docker run (options) image (command) (arg...)<\/pre><p class=\"wp-block-paragraph\">After the default syntax, use one of the following flags:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Flag<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--detach , -d<\/code><\/td><td>Runs a container in the background and prints the container ID<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--env , -e<\/code><\/td><td>Sets environment variables<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--hostname , -h<\/code><\/td><td>Sets a hostname to a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--label , -l<\/code><\/td><td>Creates a meta data label for a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--name<\/code><\/td><td>Assigns a name to a container<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--network<\/code><\/td><td>Connects a container to a network<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--rm<\/code><\/td><td>Removes container when it stops<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--read-only<\/code><\/td><td>Sets the container filesystem as read-only<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">--workdir , -w<\/code><\/td><td>Sets a working directory in a container<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-registry-commands\">Registry Commands<\/h3><p class=\"wp-block-paragraph\">If you need to interact with Docker Hub, use the following commands:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker login<\/code><\/td><td>Logs in to a registry<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker logout<\/code><\/td><td>Logs out from a registry<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker pull mysql<\/code><\/td><td>Pulls an image from a registry<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker push repo\/ rhel-httpd:latest<\/code><\/td><td>Pushes an image to a registry<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker search term<\/code><\/td><td>Searches Docker Hub for images with the specified term<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-service-commands\">Service Commands<\/h3><p class=\"wp-block-paragraph\">Manage all Docker services with these basic commands:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker service ls<\/code><\/td><td>Lists all services running in a swarm<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker stack services stackname<\/code><\/td><td>Lists all running services<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker service ps servicename<\/code><\/td><td>Lists the tasks of a service<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker service update servicename<\/code><\/td><td>Updates a service<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker service create image<\/code><\/td><td>Creates a new service<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker service scale servicename=10<\/code><\/td><td>Scales one or more replicated services<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker service logs stackname servicename<\/code><\/td><td>Lists all service logs<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-network-commands\">Network Commands<\/h3><p class=\"wp-block-paragraph\">If you need to interact with the Docker network, use one of the following commands:<\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Command<\/strong><\/td><td><strong>Explanation<\/strong><\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker network create networkname<\/code><\/td><td>Creates a new network<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker network rm networkname<\/code><\/td><td>Removes a specified network<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker network ls<\/code><\/td><td>Lists all networks<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker network connect networkname container<\/code><\/td><td>Connects a container to a network<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker network disconnect networkname container<\/code><\/td><td>Disconnects a container from a network<\/td><\/tr><tr><td><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">docker network inspect networkname<\/code><\/td><td>Displays detailed information about a network<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Docker-Cheat-Sheet.pdf\" target=\"_blank\" rel=\"noopener\">Download Free Docker Cheat Sheet<\/a><\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Suggested Readings                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Check out our other Docker tutorials<br>\n<a href=\"\/in\/tutorials\/how-to-install-docker-on-ubuntu\/\"> How to Install Docker on Ubuntu<\/a><br>\n<a href=\"\/in\/tutorials\/run-docker-wordpress\/\"> How to Install WordPress on Docker<\/a><br>\n<a href=\"\/in\/tutorials\/docker-start-a-container\/\"> How to Create a Docker Container<\/a><\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p class=\"wp-block-paragraph\">Docker is a great tool for anyone willing to try out containers. The learning curve can be steep if you&rsquo;re unfamiliar with container-based development. Luckily, having a cheat sheet at hand can speed up the process, as all common commands are easily reachable, and you don&rsquo;t need to look them up on the internet.<\/p><p class=\"wp-block-paragraph\">In this tutorial, we&rsquo;ve covered the basics of Docker architecture and gone through all the basic Docker commands, all of which can be found in our downloadable <a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Docker-Cheat-Sheet.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Docker cheat sheet<\/a>.<\/p><p class=\"wp-block-paragraph\">We hope that you found this Docker tutorial useful. If you have any questions, leave them in the comments section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker is a popular open-source platform that makes it easy to build, test, deploy, and manage containerized applications in a consistent, portable, or virtual environment such as VPS. While a powerful tool in your development arsenal, learning the different Docker commands can take time and effort. New users often benefit from having a Docker cheat [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/in\/tutorials\/docker-cheat-sheet\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":279,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":"","footnotes":""},"categories":[22702,22664],"tags":[],"class_list":["post-82911","post","type-post","status-publish","format-standard","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/docker-cheat-sheet\/","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/docker-cheat-sheet\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/cheat-sheet-docker\/","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/comandos-docker\/","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/docker-cheat-sheet\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/docker-cheat-sheet-all-the-most-essential-commands-in-one-place-downloadable-pdf\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/docker-cheat-sheet-all-the-most-essential-commands-in-one-place-downloadable-pdf\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/docker-cheat-sheet\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/docker-cheat-sheet\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/docker-cheat-sheet\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/docker-cheat-sheet\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/docker-cheat-sheet\/","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/comandos-docker\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/comandos-docker\/","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/comandos-docker\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/docker-cheat-sheet\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/82911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/comments?post=82911"}],"version-history":[{"count":16,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/82911\/revisions"}],"predecessor-version":[{"id":107387,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/82911\/revisions\/107387"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media?parent=82911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/categories?post=82911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/tags?post=82911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}