{"id":15512,"date":"2025-10-18T05:07:20","date_gmt":"2025-10-18T05:07:20","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=15512"},"modified":"2025-10-18T05:07:40","modified_gmt":"2025-10-18T05:07:40","slug":"install-docker-on-centos-10","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/","title":{"rendered":"Install Docker on CentOS 10 in Minutes"},"content":{"rendered":"\n<p>\n  Docker is a containerization platform that allows users to build and manage various types of applications in containers. CentOS 10 is a Linux-based operating system and is utilized as the host operating system for running Docker containers. Docker offers a variety of services and tools to build and deploy applications in containers on these platforms quickly. Moreover, Docker commands are the same for both platforms. \n<\/p>\n\n\n\n<p>\n  This write-up will illustrate the following:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#How-to-Install-Docker-on-CentOS-10\">How to Install Docker on CentOS 10?<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#Method-1:-Using-the-Official-Docker-Repository\">Method 1: Using the Official Docker Repository <\/a><\/li>\n\n\n\n<li><a href=\"#Method-2:-Using-Docker\u2019s-Convenience-Script\">Method 2: Using Docker\u2019s Convenience Script<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"#How-to-Use-Docker-on-CentOS\">How to Use Docker on CentOS 10?<\/a><\/li>\n\n\n\n<li><a href=\"#Conclusion\">Conclusion<\/a><br>  <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Install-Docker-on-CentOS-10\"><a id=\"post-15512-_d0aefdxe6mho\"><\/a>How to Install Docker on CentOS 10?<\/h2>\n\n\n\n<p>\n  To install Docker on CentOS 10, update package databases. Then, add the Docker repository, install Docker, and start Docker services. Let\u2019s start the installation with the easiest method:\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-1:-Using-the-Official-Docker-Repository\"><a id=\"post-15512-_a0pvt2wxmfsi\"><\/a>Method 1: Using the Official Docker Repository <\/h3>\n\n\n\n<p>\n  This is the official and most reliable method, directly maintained by Docker.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_d27y7bnpadag\"><\/a>Step 1: Install yum-utils<\/h4>\n\n\n\n<p>\n  The yum-utils provides yum-config-manager tools that help manage repositories and enable\/disable them. Let\u2019s install it:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo yum install -y yum-utils\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"972\" height=\"589\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-1.png\" alt=\"  sudo yum install -y yum-utils\n\" class=\"wp-image-15513\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-1.png 972w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-1-300x182.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-1-768x465.png 768w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_svpf084voe4i\"><\/a>Step 2: Add the Docker repository<\/h4>\n\n\n\n<p>\n  The yum-config-manager command adds Docker\u2019s official repository URL to your system\u2019s repo list:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo yum-config-manager \\\n<\/p><p>\n      &#8211;add-repo \\\n<\/p><p>\n      https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"972\" height=\"159\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-2.png\" alt=\"add docker repository\" class=\"wp-image-15514\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-2.png 972w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-2-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-2-768x126.png 768w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  That way, when you install Docker, it comes from Docker\u2019s maintained source, ensuring the latest stable versions.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_9t5r55fj4gkf\"><\/a>Step 3: Install Docker Engine<\/h4>\n\n\n\n<p>\n  Now, install Docker and all its components on CentOS:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"972\" height=\"546\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-3.png\" alt=\"  sudo yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin\n\" class=\"wp-image-15515\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-3.png 972w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-3-300x169.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-3-768x431.png 768w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Here,\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>docker-ce<\/strong>: The Docker Engine (Community Edition).<br>  <\/li>\n\n\n\n<li><strong>docker-ce-cli<\/strong>: Command-line interface to manage Docker.<br>  <\/li>\n\n\n\n<li><strong>containerd.io<\/strong>: A container runtime Docker uses under the hood.<br>  <\/li>\n\n\n\n<li><strong>docker-compose-plugin<\/strong>: Enables \u201cdocker compose\u201d commands (Compose v2).<br>    <\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_kfn9owmwu01l\"><\/a>Step 4: Start and enable Docker<\/h4>\n\n\n\n<p>\n  Launches the Docker service immediately. Also, ensures Docker starts automatically on boot:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo systemctl start docker\n<\/p><p>\n  sudo systemctl enable docker\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"187\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-4.png\" alt=\"start and enble docker\" class=\"wp-image-15516\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-4.png 975w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-4-300x58.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-4-768x147.png 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_9g532ml73a9\"><\/a>Step 5: Verify installation<\/h4>\n\n\n\n<p>\n  Let\u2019s confirm Docker CLI is installed:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo docker &#8211;version\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"105\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-5.png\" alt=\"  sudo docker --version\n\" class=\"wp-image-15517\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-5.png 969w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-5-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-5-768x83.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-5-960x105.png 960w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Let\u2019s check the services:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo docker run hello-world\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"553\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-6.png\" alt=\"  sudo docker run hello-world\n\" class=\"wp-image-15518\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-6.png 973w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-6-300x171.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-6-768x436.png 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Here, docker run hello-world downloads a small test image and runs it in a container to confirm Docker is working properly.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-2:-Using-Docker\u2019s-Convenience-Script\"><a id=\"post-15512-_28szu9skev63\"><\/a>Method 2: Using Docker\u2019s Convenience Script<\/h3>\n\n\n\n<p>\n  Docker offers a one-line installation script that automatically. It detects your OS, adds the repo, installs the correct Docker version. Let\u2019s install it:\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_i23s0a23svcq\"><\/a>Step 1: Update Package Database<\/h4>\n\n\n\n<p>\n  First, execute the following command to check for available updates for the installed packages on the system and update them:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo yum update\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"180\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-7.png\" alt=\"  sudo yum update\n\" class=\"wp-image-15519\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-7.png 971w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-7-300x56.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-7-768x142.png 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  The output shows that the package list is successfully updated.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_vcayr5w9vqax\"><\/a>Step 2: Add Docker Repository and Download Docker<\/h4>\n\n\n\n<p>\n  Then, add the official Docker repository to the system\u2019s package sources and install\/download Docker\u2019s latest version. After that, install the Docker engine package through the provided command:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  curl -fsSL https:\/\/get.docker.com\/ | sh\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"395\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-8.png\" alt=\"  curl -fsSL https:\/\/get.docker.com\/ | sh\n\" class=\"wp-image-15520\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-8.png 971w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-8-300x122.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-8-768x312.png 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  The above-executed command has downloaded and installed the latest version of Docker.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_qyl8t2p4h303\"><\/a>Step 3: Start Docker Daemon<\/h4>\n\n\n\n<p>\n  Next, type out the given command to start the Docker daemon:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo systemctl start docker\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"112\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-9.png\" alt=\"  sudo systemctl start docker\n\" class=\"wp-image-15521\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-9.png 970w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-9-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-9-768x89.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-9-960x112.png 960w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  This command has started the Docker services.\n<\/p>\n\n\n\n<p>\n  Let\u2019s enable the services:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo systemctl enable docker\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"133\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-10.png\" alt=\"  sudo systemctl enable docker\n\" class=\"wp-image-15522\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-10.png 964w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-10-300x41.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-10-768x106.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-10-960x133.png 960w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_nvzzk6z4x895\"><\/a>Step 4: Verify the Status of Services<\/h4>\n\n\n\n<p>\n  To verify whether the Docker daemon services have been started or not by checking their status: \n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo systemctl status docker\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"470\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-11.png\" alt=\"  sudo systemctl status docker\n\" class=\"wp-image-15523\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-11.png 976w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-11-300x144.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-11-768x370.png 768w\" sizes=\"(max-width: 976px) 100vw, 976px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  It can be seen that the Docker Daemon is running.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15512-_vtmyspr9r8dz\"><\/a>Step 5: Verification<\/h4>\n\n\n\n<p>\n  Finally, run any Docker command to ensure that Docker has been installed successfully and its services are running. For instance, execute the following command: \n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo docker run hello-world\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"552\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-12.png\" alt=\"  sudo docker run hello-world\n\" class=\"wp-image-15524\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-12.png 977w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-12-300x169.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-12-768x434.png 768w\" sizes=\"(max-width: 977px) 100vw, 977px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  The output shows that Docker has been successfully installed on CentOS. \n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Use-Docker-on-CentOS\"><a id=\"post-15512-_fmyrr7d0w9yu\"><\/a>How to Use Docker on CentOS?<\/h2>\n\n\n\n<p>\n  Docker can be used in different ways on CentOS, such as:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pull Image From Docker Hub<\/li>\n\n\n\n<li>List All Docker Images<\/li>\n\n\n\n<li>Build and Run Docker Container<\/li>\n\n\n\n<li>View All Docker Containers<br>  <\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-15512-_rnpglsc4bc4w\"><\/a>Usage 1: Pull an Image From Docker Hub<\/h3>\n\n\n\n<p>\n  To pull a particular Docker image from the Docker hub, utilize the \u201c<strong>sudo docker pull &lt;image-name&gt;<\/strong>\u201d command:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo docker pull nginx:latest\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"284\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-13.png\" alt=\"  sudo docker pull nginx:latest\n\" class=\"wp-image-15525\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-13.png 967w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-13-300x88.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-13-768x226.png 768w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  According to the above output, the latest version of the \u201c<strong>nginx<\/strong>\u201d image has been downloaded successfully. \n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-15512-_g00xku1x7d99\"><\/a>Usage 2: List All Docker Images <\/h3>\n\n\n\n<p>\n  Execute the given command to display all the available Docker images:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo docker images\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"157\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-14.png\" alt=\"  sudo docker images\n\" class=\"wp-image-15526\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-14.png 973w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-14-300x48.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-14-768x124.png 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  The above output indicates that there are three Docker images available on the local system.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-15512-_nhd03uxls0ir\"><\/a>Usage 3: Build and Run Docker Container<\/h3>\n\n\n\n<p>\n  In order to create and execute a Docker container from a particular Docker image, write out the \u201c<strong>sudo docker run -d &#8211;name &lt;container-name&gt; &lt;image-name&gt;<\/strong>\u201d command:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo docker run -d &#8211;name nginxCont nginx:latest\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\n  Here:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The \u201c<strong>-d<\/strong>\u201d option is utilized to execute the container in detached mode.<\/li>\n\n\n\n<li>\u201c<strong>&#8211;name<\/strong>\u201d defines the container name, i.e., \u201c<strong>nginxCont<\/strong>\u201d.<\/li>\n\n\n\n<li>\u201c<strong>nginx:latest<\/strong>\u201d is the latest version of the Docker Hub image to utilize for the container:<br>  <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"105\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-15.png\" alt=\"  sudo docker run -d --name nginxCont nginx:latest\n\" class=\"wp-image-15527\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-15.png 972w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-15-300x32.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-15-768x83.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-15-960x105.png 960w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  This command has built and executed the container. \n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-15512-_q7ywaj11n3cs\"><\/a>Usage 4: View All Docker Containers <\/h3>\n\n\n\n<p>\n  Type out the following command to display all the Docker containers:\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><p>\n  sudo docker ps -a\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"231\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-16.png\" alt=\"  sudo docker ps -a\n\" class=\"wp-image-15528\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-16.png 971w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-16-300x71.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/word-image-15512-16-768x183.png 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  In the above output, two Docker containers can be seen.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Conclusion\"><a id=\"post-15512-_vpcejb4wkutb\"><\/a>Conclusion<\/h2>\n\n\n\n<p>\n  To install Docker on CentOS 10, first, update the package databases. Then, add Docker Repository and download Docker through the \u201c<strong>curl -fsSL https:\/\/get.docker.com\/ | sh<\/strong>\u201d command. Next, start Docker services via the \u201c<strong>sudo systemctl start docker<\/strong>\u201d command and verify its status. The user can use Docker on CentOS to perform various operations, such as pulling an image from Docker Hub, listing all Docker images, building and running Docker containers, viewing all containers, and many more. \n<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Docker is a containerization platform that allows users to build and manage various types of applications in containers. CentOS 10 is a Linux-based operating system and is utilized as the host operating system for running Docker containers. Docker offers a variety of services and tools to build and deploy applications in containers on these platforms [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":15529,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[958,267,227],"class_list":["post-15512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-centos-10","tag-containers","tag-docker"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install Docker on CentOS 10 in Minutes<\/title>\n<meta name=\"description\" content=\"In this write up, we will illustrate methods you can use to install Docker on CentOS 10 server in few minutes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Docker on CentOS 10 in Minutes\" \/>\n<meta property=\"og:description\" content=\"In this write up, we will illustrate methods you can use to install Docker on CentOS 10 server in few minutes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-18T05:07:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-18T05:07:40+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"Install Docker on CentOS 10 in Minutes\",\"datePublished\":\"2025-10-18T05:07:20+00:00\",\"dateModified\":\"2025-10-18T05:07:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/\"},\"wordCount\":893,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg\",\"keywords\":[\"CentOS 10\",\"Containers\",\"Docker\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/\",\"name\":\"Install Docker on CentOS 10 in Minutes\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg\",\"datePublished\":\"2025-10-18T05:07:20+00:00\",\"dateModified\":\"2025-10-18T05:07:40+00:00\",\"description\":\"In this write up, we will illustrate methods you can use to install Docker on CentOS 10 server in few minutes.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg\",\"width\":1020,\"height\":600,\"caption\":\"Install Docker on CentOS 10\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Docker on CentOS 10 in Minutes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Docker on CentOS 10 in Minutes","description":"In this write up, we will illustrate methods you can use to install Docker on CentOS 10 server in few minutes.","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:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/","og_locale":"en_US","og_type":"article","og_title":"Install Docker on CentOS 10 in Minutes","og_description":"In this write up, we will illustrate methods you can use to install Docker on CentOS 10 server in few minutes.","og_url":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-10-18T05:07:20+00:00","article_modified_time":"2025-10-18T05:07:40+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"Install Docker on CentOS 10 in Minutes","datePublished":"2025-10-18T05:07:20+00:00","dateModified":"2025-10-18T05:07:40+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/"},"wordCount":893,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg","keywords":["CentOS 10","Containers","Docker"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/","url":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/","name":"Install Docker on CentOS 10 in Minutes","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg","datePublished":"2025-10-18T05:07:20+00:00","dateModified":"2025-10-18T05:07:40+00:00","description":"In this write up, we will illustrate methods you can use to install Docker on CentOS 10 server in few minutes.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/10\/Install-Docker-on-CentOS-10.jpg","width":1020,"height":600,"caption":"Install Docker on CentOS 10"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/install-docker-on-centos-10\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"Install Docker on CentOS 10 in Minutes"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/15512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=15512"}],"version-history":[{"count":1,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/15512\/revisions"}],"predecessor-version":[{"id":15531,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/15512\/revisions\/15531"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/15529"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=15512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=15512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=15512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}