{"id":43741,"date":"2023-01-09T12:30:20","date_gmt":"2023-01-09T18:30:20","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=43741"},"modified":"2022-12-30T07:49:37","modified_gmt":"2022-12-30T13:49:37","slug":"top-10-docker-commands-you-should-know","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/","title":{"rendered":"Top 10 Docker Commands You Should Know"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-44484 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp\" alt=\"top 10 docker commands\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we are going to show you the ten most used Docker commands you should know.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-environment-variables-in-docker\/\">Docker<\/a> is an open-source platform service used for running applications in isolated environments called containers. The containers have their own structure, with encapsulated services that can not interfere with the work of the main server. In this tutorial, we are going to use the Ubuntu 22.04 OS, but you can choose any Linux distro you want.<\/p>\n<p>First, we will install the docker and then show you the ten most used docker commands. Let&#8217;s get started!<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ef4d2310b3d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ef4d2310b3d\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#Update-the-System\" >Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#Install-Docker\" >Install Docker<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#1-Check-the-Docker-version\" >1. Check the Docker version<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#2-Search-package\" >2. Search package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#3-Docker-pull\" >3. Docker pull<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#4-Docker-run\" >4. Docker run<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#5-Docker-ps\" >5. Docker ps<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#6-Docker-start\" >6. Docker start<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#7-Docker-stop\" >7. Docker stop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#8-Docker-Restart\" >8. Docker Restart<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#9-Docker-Remove\" >9. Docker Remove<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#10-Docker-Help\" >10. Docker Help<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A server with Ubuntu 22.04 as OS<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Update-the-System\"><\/span>Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we start with the installation of Docker, we will update the system packages to their latest versions available:<\/p>\n<pre>sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-Docker\"><\/span>Install Docker<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we need to install some Docker dependencies:<\/p>\n<pre>sudo apt-get install apt-transport-https curl gnupg-agent ca-certificates software-properties-common -y<\/pre>\n<p>Next is to add the GPGK key:<\/p>\n<pre>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -<\/pre>\n<p>Once the GPGK key is added, we need to add the repo because it is not included in the Ubuntu 22.04:<\/p>\n<pre>sudo add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu focal stable\"<\/pre>\n<p>After adding the key and repo, you can install Docker with the following commands:<\/p>\n<pre>sudo apt-get install docker-ce docker-ce-cli containerd.io -y<\/pre>\n<p>After successful installation, start and enable the docker service:<\/p>\n<pre>sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<\/pre>\n<p>To check the status of the service, execute the following command:<\/p>\n<pre>sudo systemctl status docker<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@vps:~# systemctl status docker\r\n\u25cf docker.service - Docker Application Container Engine\r\n     Loaded: loaded (\/lib\/systemd\/system\/docker.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Tue 2022-12-06 15:13:24 CST; 10min ago\r\nTriggeredBy: \u25cf docker.socket\r\n       Docs: https:\/\/docs.docker.com\r\n   Main PID: 120228 (dockerd)\r\n      Tasks: 9\r\n     Memory: 21.1M\r\n        CPU: 2.326s\r\n     CGroup: \/system.slice\/docker.service\r\n             \u2514\u2500120228 \/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock\r\n<\/pre>\n<p>Now, when the Docker service is installed, we can start with the <b>docker<\/b> commands.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"1-Check-the-Docker-version\"><\/span>1. Check the Docker version<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To check the installed Docker version, execute the command <b>docker &#8211;version<\/b>. You should receive output similar to this:<\/p>\n<pre>root@host:~# docker --version\r\nDocker version 20.10.21, build baeda1f\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Search-package\"><\/span>2. Search package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To search for some software that can be installed with Docker, execute the following command:<\/p>\n<pre>docker search wordpress<\/pre>\n<p>You will receive a list of available WordPress packages:<\/p>\n<pre>root@host:~# docker search wordpress\r\nNAME                                     DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED\r\nwordpress                                The WordPress rich content management system\u2026   5012      [OK]\r\nbitnami\/wordpress                        Bitnami container image for WordPress           208                  [OK]\r\nbitnami\/wordpress-nginx                  Bitnami Docker Image for WordPress with NGINX   67                   [OK]\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Docker-pull\"><\/span>3. Docker pull<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Docker pull is used for taking the application from the official Docker Hub. Let&#8217;s pull the WordPress package we searched for in the previous step.<\/p>\n<pre>docker pull wordpress<\/pre>\n<p>After a successful pull, you should receive the following output:<\/p>\n<pre>root@host:~# docker pull wordpress\r\nUsing default tag: latest\r\nlatest: Pulling from library\/wordpress\r\na603fa5e3b41: Pull complete\r\nc428f1a49423: Pull complete\r\n156740b07ef8: Pull complete\r\nfb5a4c8af82f: Pull complete\r\n25f85b498fd5: Pull complete\r\n9b233e420ac7: Pull complete\r\nfe42347c4ecf: Pull complete\r\n9a7bf1523229: Pull complete\r\na0b541d575c5: Pull complete\r\nc0e75b0cc4dc: Pull complete\r\na97a86207955: Pull complete\r\nf88820a52a78: Pull complete\r\n81ebcb8aedf6: Pull complete\r\n265e9160e272: Pull complete\r\nadbaf7c3bb9d: Pull complete\r\n1b8e3ff1537e: Pull complete\r\nbc197583e391: Pull complete\r\nf89eb7cb30b3: Pull complete\r\nfa90bc2f4db7: Pull complete\r\n1ca7d72233c9: Pull complete\r\nc68df4c97ee8: Pull complete\r\nDigest: sha256:fd08649a97d2cb6967fb0a5cd8a710e2b6075502eb18f6c3f841a4d986c0700b\r\nStatus: Downloaded newer image for wordpress:latest\r\ndocker.io\/library\/wordpress:latest\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Docker-run\"><\/span>4. Docker run<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Docker run command is used for creating a container from an image.<\/p>\n<pre>docker run hello-world<\/pre>\n<p>You should receive output similar to this:<\/p>\n<pre>root@host:~# docker run hello-world\r\n\r\nHello from Docker!\r\nThis message shows that your installation appears to be working correctly.\r\n\r\nTo generate this message, Docker took the following steps:\r\n 1. The Docker client contacted the Docker daemon.\r\n 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\r\n    (amd64)\r\n 3. The Docker daemon created a new container from that image which runs the\r\n    executable that produces the output you are currently reading.\r\n 4. The Docker daemon streamed that output to the Docker client, which sent it\r\n    to your terminal.\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Docker-ps\"><\/span>5. Docker ps<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <b>docker ps<\/b> command is used for listing the running containers. Let&#8217;s execute this command: <b>docker ps<\/b><\/p>\n<pre>root@host:~# docker ps\r\nCONTAINER ID   IMAGE            COMMAND                  CREATED         STATUS         PORTS                               NAMES\r\nd2a01e103a5d   wordpress        \"docker-entrypoint.s\u2026\"   6 minutes ago   Up 6 minutes   0.0.0.0:80-&gt;80\/tcp, :::80-&gt;80\/tcp   wordpress\r\n3ac6a4cf7b0c   mariadb:latest   \"docker-entrypoint.s\u2026\"   8 minutes ago   Up 8 minutes   3306\/tcp                            wordpressdb\r\n<\/pre>\n<p>As you can see, there are two running containers on our system.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6-Docker-start\"><\/span>6. Docker start<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Docker start is used for starting the stopped containers. Let&#8217;s first list the stopped containers:<\/p>\n<pre>docker ps -a<\/pre>\n<p>You will receive an output similar to this:<\/p>\n<pre>root@host:~# docker ps -a\r\nCONTAINER ID   IMAGE            COMMAND                  CREATED          STATUS                          PORTS     NAMES\r\nd2a01e103a5d   wordpress        \"docker-entrypoint.s\u2026\"   25 minutes ago   Exited (0) About a minute ago             wordpress\r\n3ac6a4cf7b0c   mariadb:latest   \"docker-entrypoint.s\u2026\"   28 minutes ago   Exited (0) About a minute ago             wordpressdb\r\n<\/pre>\n<p>Remember that we start the containers using their IDs. To start both containers, execute the following commands:<\/p>\n<pre>docker start 3ac6a4cf7b0c\r\n\r\ndocker start d2a01e103a5d\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Docker-stop\"><\/span>7. Docker stop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, opposite of the docker start is the docker stop command used for stopping the containers.<\/p>\n<pre>docker stop d2a01e103a5d 3ac6a4cf7b0c<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"8-Docker-Restart\"><\/span>8. Docker Restart<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Docker restart is used for restarting the containers:<\/p>\n<pre>root@host:~# <b>docker restart 3ac6a4cf7b0c d2a01e103a5d<\/b>\r\n3ac6a4cf7b0c\r\nd2a01e103a5d\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"9-Docker-Remove\"><\/span>9. Docker Remove<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <b>docker rm<\/b> command is used for removing the Docker containers. Before removing note that you need to stop the containers.<\/p>\n<pre>root@host:~# docker rm 3ac6a4cf7b0c d2a01e103a5d\r\n3ac6a4cf7b0c\r\nd2a01e103a5d\r\n<\/pre>\n<p>Now, the containers are deleted permanently.<\/p>\n<pre>root@host:~# docker ps -a\r\nCONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"10-Docker-Help\"><\/span>10. Docker Help<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to know more about the docker, you can simply execute the <b>docker help<\/b> command. You should receive the following output:<\/p>\n<pre>root@host:~# docker help\r\n\r\nUsage:  docker [OPTIONS] COMMAND\r\n\r\nA self-sufficient runtime for containers\r\n\r\nOptions:\r\n      --config string      Location of client config files (default \"\/root\/.docker\")\r\n  -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with \"docker context use\")\r\n  -D, --debug              Enable debug mode\r\n  -H, --host list          Daemon socket(s) to connect to\r\n  -l, --log-level string   Set the logging level (\"debug\"|\"info\"|\"warn\"|\"error\"|\"fatal\") (default \"info\")\r\n      --tls                Use TLS; implied by --tlsverify\r\n      --tlscacert string   Trust certs signed only by this CA (default \"\/root\/.docker\/ca.pem\")\r\n      --tlscert string     Path to TLS certificate file (default \"\/root\/.docker\/cert.pem\")\r\n      --tlskey string      Path to TLS key file (default \"\/root\/.docker\/key.pem\")\r\n      --tlsverify          Use TLS and verify the remote\r\n  -v, --version            Print version information and quit\r\n<\/pre>\n<p>Congratulations! You just learned something about Docker commands with real examples. If learning Docker is difficult, you can sign up for one of our <a href=\"https:\/\/www.rosehosting.com\/\">NVMe VPS hosting<\/a> plans, and we will install and configure Docker for you. You can contact us anytime you want. We are available 24\/7.<\/p>\n<p>If you liked this post about the top 10 Docker commands, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to show you the ten most used Docker commands you should know. Docker is &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Top 10 Docker Commands You Should Know\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#more-43741\" aria-label=\"Read more about Top 10 Docker Commands You Should Know\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":44484,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1236,13],"tags":[103,1794,27],"class_list":["post-43741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","category-tutorials","tag-commands","tag-docker","tag-linux","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Top 10 Docker Commands You Should Know | RoseHosting<\/title>\n<meta name=\"description\" content=\"What are the ten most used Docker commands you should know? Check out our guide and find out.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Top 10 Docker Commands You Should Know\" \/>\n<meta property=\"og:description\" content=\"Top 10 Docker Commands You Should Know | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-09T18:30:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Top 10 Docker Commands You Should Know\",\"datePublished\":\"2023-01-09T18:30:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/\"},\"wordCount\":566,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/top-10-docker-commands.webp\",\"keywords\":[\"Commands\",\"docker\",\"Linux\"],\"articleSection\":[\"Guides\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/\",\"name\":\"Top 10 Docker Commands You Should Know | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/top-10-docker-commands.webp\",\"datePublished\":\"2023-01-09T18:30:20+00:00\",\"description\":\"What are the ten most used Docker commands you should know? Check out our guide and find out.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/top-10-docker-commands.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/top-10-docker-commands.webp\",\"width\":742,\"height\":372,\"caption\":\"top 10 docker commands\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/top-10-docker-commands-you-should-know\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Top 10 Docker Commands You Should Know\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Top 10 Docker Commands You Should Know | RoseHosting","description":"What are the ten most used Docker commands you should know? Check out our guide and find out.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/","og_locale":"en_US","og_type":"article","og_title":"Top 10 Docker Commands You Should Know","og_description":"Top 10 Docker Commands You Should Know | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2023-01-09T18:30:20+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Top 10 Docker Commands You Should Know","datePublished":"2023-01-09T18:30:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/"},"wordCount":566,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp","keywords":["Commands","docker","Linux"],"articleSection":["Guides","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/","url":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/","name":"Top 10 Docker Commands You Should Know | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp","datePublished":"2023-01-09T18:30:20+00:00","description":"What are the ten most used Docker commands you should know? Check out our guide and find out.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/top-10-docker-commands.webp","width":742,"height":372,"caption":"top 10 docker commands"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/top-10-docker-commands-you-should-know\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Top 10 Docker Commands You Should Know"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/43741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=43741"}],"version-history":[{"count":8,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/43741\/revisions"}],"predecessor-version":[{"id":44500,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/43741\/revisions\/44500"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/44484"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=43741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=43741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=43741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}