{"id":30752,"date":"2019-10-02T09:29:05","date_gmt":"2019-10-02T14:29:05","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=30752"},"modified":"2022-06-03T03:33:27","modified_gmt":"2022-06-03T08:33:27","slug":"how-to-install-docker-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/","title":{"rendered":"How to Install Docker on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-32085\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will show you how to install Docker on a <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7 VPS<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32086\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/easy-install-configuration-docker-virtualization-for-centos7-vps.jpg\" alt=\"\" width=\"150\" height=\"128\" \/>Docker is a software development platform which makes it easy and simple to run applications in a container. It\u2019s a kind of virtualization technology that makes it simple to develop and deploy applications inside of neatly packaged virtual containerized environments. Docker containers can be deployed to any machine without any compatibility issues, so the software stays system agnostic, simpler to use, less work to develop, and easy to maintain and deploy. Let&#8217;s begin the installation.<\/p>\n<p><!--more--><\/p>\n<div id=\"primary\" class=\"content-area\">\n<article id=\"post-113\" class=\"post-113 post type-post status-publish format-standard hentry category-blog tag-docker no-featured-image\">\n<div class=\"entry-body\">\n<div class=\"entry-content\">\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-69c9abab53c6c\" 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-69c9abab53c6c\"  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\/how-to-install-docker-on-centos-7\/#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\/how-to-install-docker-on-centos-7\/#Step-1-Connect-via-SSH\" >Step 1: Connect via SSH<\/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\/how-to-install-docker-on-centos-7\/#Step-2-Install-Docker-on-CentOS-7\" >Step 2: Install Docker on CentOS 7<\/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\/how-to-install-docker-on-centos-7\/#Step-3-Using-the-Docker-Command\" >Step 3: Using the Docker Command<\/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\/how-to-install-docker-on-centos-7\/#Step-4-The-Docker-Command-Line-Interface\" >Step 4: The Docker Command Line Interface<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span><strong>Prerequisites:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>For the purposes of this tutorial, we will use a <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS 7 VPS<\/a>.<\/li>\n<li>Full SSH root access, or a user with sudo privileges is also required.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Connect-via-SSH\"><\/span><span id=\"1-Connect-via-SSH\" class=\"ez-toc-section\">Step 1: Connect via SSH<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Connect to your server via SSH as the root user using the following command:<\/p>\n<pre>ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\n<p>and replace \u201c<span style=\"color: #ff0000;\">IP_ADDRESS<\/span>\u201d and \u201c<span style=\"color: #ff0000;\">PORT_NUMBER<\/span>\u201d with your actual server IP address and SSH port number.<\/p>\n<p>Before starting with the installation, you will need to update your system packages to their latest versions.<\/p>\n<p>You can do this by running the following command:<\/p>\n<pre>sudo yum update<\/pre>\n<p>Once the update is completed, we can move onto the installation step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-Docker-on-CentOS-7\"><\/span><span id=\"2-Install-Redis-on-Ubuntu-1604\" class=\"ez-toc-section\">Step 2: Install Docker on CentOS 7<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The recommended way to install Docker is to install from the Docker repositories. We will install some required dependencies with the following command:<\/p>\n<pre>sudo yum install yum-utils device-mapper-persistent-data lvm2<\/pre>\n<p>Next, we will add the Docker repository, enable it, and install it with the following commands:<\/p>\n<pre>sudo yum-config-manager --add-repo <span class=\"skimlinks-unlinked\">https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<\/span>\r\nsudo yum install docker-ce<\/pre>\n<p>After the installation has completed, we will start the Docker daemon:<\/p>\n<pre>sudo systemctl start docker<\/pre>\n<p>We can verify that it\u2019s running with the following command:<\/p>\n<pre>sudo systemctl status docker<\/pre>\n<p>The output should be similar to the following:<\/p>\n<pre> docker.service - Docker Application Container Engine\r\n\u00a0 \u00a0 \u00a0 \u00a0Loaded: loaded (\/lib\/systemd\/system\/docker.service; enabled; vendor preset: enabled)\r\n\u00a0 \u00a0 \u00a0 \u00a0Active: active (running) \r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Docs: <span class=\"skimlinks-unlinked\">https:\/\/docs.docker.com<\/span>\r\nMain PID: 4234 (dockerd)\r\n\u00a0 \u00a0 \u00a0 \u00a0Tasks: 8\r\n\u00a0 \u00a0 CGroup: \/<span class=\"skimlinks-unlinked\">system.slice\/docker.service<\/span>\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2514\u25004234 \/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/<span class=\"skimlinks-unlinked\">containerd.sock<\/span><\/pre>\n<p>Docker has now been successfully installed. In the next steps, we will show you how to use the\u00a0docker\u00a0command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Using-the-Docker-Command\"><\/span><span id=\"2-Install-Redis-on-Ubuntu-1604\" class=\"ez-toc-section\">Step 3: Using the Docker Command<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The syntax of the Docker CLI command takes this form:<\/p>\n<pre>docker [option] [command] [arguments]<\/pre>\n<p>To list all available commands, we need to run the docker command with no parameters:<\/p>\n<pre>docker<\/pre>\n<p>The output should be similar to the following:<\/p>\n<pre>A self-sufficient runtime for containers\r\n\r\nOptions:\r\n--config string Location of client config files (default \"\/root\/.docker\")\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\/<span class=\"skimlinks-unlinked\">ca.pem<\/span>\")\r\n--tlscert string Path to TLS certificate file (default \"\/root\/.docker\/<span class=\"skimlinks-unlinked\">cert.pem<\/span>\")\r\n--tlskey string Path to TLS key file (default \"\/root\/.docker\/<span class=\"skimlinks-unlinked\">key.pem<\/span>\")\r\n--tlsverify Use TLS and verify the remote\r\n-v, --version Print version information and quit\r\n\r\nManagement Commands:\r\nbuilder     Manage builds\r\nconfig      Manage Docker configs\r\ncontainer   Manage containers\r\nengine      Manage the docker engine\r\nimage       Manage images\r\nnetwork     Manage networks\r\nnode        Manage Swarm nodes\r\nplugin      Manage plugins\r\nsecret      Manage Docker secrets\r\nservice     Manage services\r\nstack       Manage Docker stacks\r\nswarm       Manage Swarm\r\nsystem      Manage Docker\r\ntrust       Manage trust on Docker images\r\nvolume      Manage volumes\r\n\r\nCommands:\r\n\u00a0 attach      Attach local standard input, output, and error streams to a running container\r\n  build       Build an image from a Dockerfile\r\n  commit      Create a new image from a container's changes\r\n  cp          Copy files\/folders between a container and the local filesystem\r\n  create      Create a new container\r\n  diff        Inspect changes to files or directories on a container's filesystem\r\n  events      Get real time events from the server\r\n  exec        Run a command in a running container\r\n  export      Export a container's filesystem as a tar archive\r\n  history     Show the history of an image\r\n  images      List images\r\n  import      Import the contents from a tarball to create a filesystem image\r\n  info        Display system-wide information\r\n  inspect     Return low-level information on Docker objects\r\n  kill        Kill one or more running containers\r\n  load        Load an image from a tar archive or STDIN\r\n  login       Log in to a Docker registry\r\n  logout      Log out from a Docker registry\r\n  logs        Fetch the logs of a container\r\n  pause       Pause all processes within one or more containers\r\n  port        List port mappings or a specific mapping for the container\r\n  ps          List containers\r\n  pull        Pull an image or a repository from a registry\r\n  push        Push an image or a repository to a registry\r\n  rename      Rename a container\r\n  restart     Restart one or more containers\r\n  rm          Remove one or more containers\r\n  rmi         Remove one or more images\r\n  run         Run a command in a new container\r\n  save        Save one or more images to a tar archive (streamed to STDOUT by default)\r\n  search      Search the Docker Hub for images\r\n  start       Start one or more stopped containers\r\n  stats       Display a live stream of container(s) resource usage statistics\r\n  stop        Stop one or more running containers\r\n  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE\r\n  top         Display the running processes of a container\r\n  unpause     Unpause all processes within one or more containers\r\n  update      Update configuration of one or more containers\r\n  version     Show the Docker version information\r\n  wait        Block until one or more containers stop, then print their exit codes<\/pre>\n<p>To see the options available to a specific command, execute the following command:<\/p>\n<pre>docker <em><span class=\"highlight\">docker-subcommand<\/span><\/em> --help<\/pre>\n<p>To view information about Docker:<\/p>\n<pre>docker info<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-The-Docker-Command-Line-Interface\"><\/span><span id=\"2-Install-Redis-on-Ubuntu-1604\" class=\"ez-toc-section\">Step 4: The Docker Command Line Interface<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To search for an image from the Docker Hub registry, we can use the following command:<\/p>\n<pre>docker search centos<\/pre>\n<p>If you want to download an official copy of CentOS 7, we can do this by using the\u00a0<em>image pull\u00a0<\/em>subcommand:<\/p>\n<pre>docker image pull centos<\/pre>\n<p>If there is no tag specified, Docker will pull the latest image.<\/p>\n<p>We can list the images by using the following command:<\/p>\n<pre>docker image ls<\/pre>\n<p>If you need to remove an image for any reason, you can use the following command:<\/p>\n<pre>docker image rm centos<\/pre>\n<p>To start, stop, remove, and manage a container, you can do this with the following subcommand:<\/p>\n<pre>docker container<\/pre>\n<p>With the following command, we can start a Docker container:<\/p>\n<pre>docker container run centos<\/pre>\n<p>If you need to interact with the container via the command line, you can do this executing the following command:<\/p>\n<pre>docker container run -it centos \/bin\/bash<\/pre>\n<p>To list all active containers, type:<\/p>\n<pre>docker container ls<\/pre>\n<p>You can view both active and inactive containers with the following line:<\/p>\n<pre>docker container ls -a<\/pre>\n<p>To remove docker containers, execute the following command:<\/p>\n<pre>docker container rm <em>[container_id]<\/em><\/pre>\n<p>Those are some of the most useful commands for Docker. In this tutorial, we learned how to install Docker on Centos 7 and how to use the docker command line interface.<\/p>\n<\/div>\n<\/div>\n<\/article>\n<\/div>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32087\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/docker-help-configuration-containers-support-team-admins-for-centos7.jpg\" alt=\"\" width=\"150\" height=\"128\" \/>Of course, you don\u2019t have to install Docker on <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7<\/a> if you use one of our <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Managed CentOS Hosting services<\/a>, in which case you can simply ask our expert system administrators to install Docker on CentOS 7 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS.<\/span><\/strong> If you liked this post on how to install Docker on CentOS 7, please share it with your friends on the social networks by using the share shortcuts below, or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install Docker on a CentOS 7 VPS. Docker is a software &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Docker on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#more-30752\" aria-label=\"Read more about How to Install Docker on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32085,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13],"tags":[1794],"class_list":["post-30752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","tag-docker","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.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Docker on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Docker on CentOS 7 | RoseHosting\" \/>\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\/how-to-install-docker-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Docker on CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to Install Docker on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/\" \/>\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=\"2019-10-02T14:29:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg\" \/>\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\/jpeg\" \/>\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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Docker on CentOS 7\",\"datePublished\":\"2019-10-02T14:29:05+00:00\",\"dateModified\":\"2022-06-03T08:33:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/\"},\"wordCount\":618,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg\",\"keywords\":[\"docker\"],\"articleSection\":[\"CentOS\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/\",\"name\":\"How to Install Docker on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg\",\"datePublished\":\"2019-10-02T14:29:05+00:00\",\"dateModified\":\"2022-06-03T08:33:27+00:00\",\"description\":\"How to Install Docker on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Docker on CentOS 7\"}]},{\"@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":"How to Install Docker on CentOS 7 | RoseHosting","description":"How to Install Docker on CentOS 7 | RoseHosting","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\/how-to-install-docker-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Docker on CentOS 7","og_description":"How to Install Docker on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-10-02T14:29:05+00:00","article_modified_time":"2022-06-03T08:33:27+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Docker on CentOS 7","datePublished":"2019-10-02T14:29:05+00:00","dateModified":"2022-06-03T08:33:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/"},"wordCount":618,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg","keywords":["docker"],"articleSection":["CentOS","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/","name":"How to Install Docker on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg","datePublished":"2019-10-02T14:29:05+00:00","dateModified":"2022-06-03T08:33:27+00:00","description":"How to Install Docker on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-docker-on-centos7.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Docker on CentOS 7"}]},{"@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\/30752","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=30752"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30752\/revisions"}],"predecessor-version":[{"id":41696,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30752\/revisions\/41696"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32085"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=30752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=30752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=30752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}