{"id":175238,"date":"2025-07-02T09:22:03","date_gmt":"2025-07-02T09:22:03","guid":{"rendered":"https:\/\/linuxiac.com\/?p=175238"},"modified":"2025-07-13T09:40:39","modified_gmt":"2025-07-13T09:40:39","slug":"how-to-install-docker-on-almalinux-10","status":"publish","type":"post","link":"https:\/\/linuxiac.com\/how-to-install-docker-on-almalinux-10\/","title":{"rendered":"How to Install Docker on AlmaLinux 10: A Step-by-Step Guide"},"content":{"rendered":"\n<p>Nowadays, Docker is the de facto standard for packaging, distributing, and running applications in lightweight, portable containers. As the free RHEL replacement, AlmaLinux promises a stable, enterprise-grade platform.<\/p>\n\n\n\n<p>Pairing Docker with Alma gives you one of the most reliable platforms for all your containerization needs\u2014whether you&#8217;re a self-hosting enthusiast or part of a team at a large enterprise.<\/p>\n\n\n\n<p>In this guide, I\u2019ll walk you through the Docker installation process on <a href=\"https:\/\/linuxiac.com\/almalinux-10-released\/\" data-type=\"post\" data-id=\"170205\">AlmaLinux 10<\/a>. Follow the steps, and in just a few minutes, you\u2019ll have everything up and running smoothly, ready to build, ship, and easily run your containers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Docker on AlmaLinux 10<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Refresh the Package Base<\/h3>\n\n\n\n<p>First, refresh the packages on your Alma system to ensure you\u2019re using the latest software versions available in the distro\u2019s repos. If there are pending updates, apply them.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo dnf update<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-01.jpg\"><img decoding=\"async\" width=\"1024\" height=\"211\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-01-1024x211.jpg\" alt=\"Refreshing the package base.\" class=\"wp-image-175394\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-01-1024x211.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-01-380x78.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-01-768x158.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-01.jpg 1050w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Refreshing the package base.<\/figcaption><\/figure>\n\n\n\n<p>If you\u2019re unsure about using Alma\u2019s DNF package manager, I highly recommend checking out our \u201c<a href=\"https:\/\/linuxiac.com\/dnf-command-linux\/\">DNF Command-Line Package Manager in Linux: A Complete Guide<\/a>.\u201d Now, back to the topic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Add Docker Repository<\/h3>\n\n\n\n<p>Now let&#8217;s add the official Docker repository to your AlmaLinux 10 system so you can install and update Docker directly from upstream&#8217;s maintained RPM packages.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo dnf config-manager --add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-02.jpg\"><img decoding=\"async\" width=\"1024\" height=\"87\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-02-1024x87.jpg\" alt=\"Adding the official Docker repository.\" class=\"wp-image-175406\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-02-1024x87.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-02-380x32.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-02-768x65.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-02.jpg 1094w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Adding the official Docker repository.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Run System Update<\/h3>\n\n\n\n<p>Run the system update, which will force your AlmaLinux system to refresh the package metadata for all enabled repositories and the packages available in them.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo dnf update<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-03.jpg\"><img decoding=\"async\" width=\"1004\" height=\"166\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-03.jpg\" alt=\"Refreshing the package base.\" class=\"wp-image-175415\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-03.jpg 1004w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-03-380x63.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-03-768x127.jpg 768w\" sizes=\"(max-width: 1004px) 100vw, 1004px\" \/><\/a><figcaption class=\"wp-element-caption\">Refreshing the package base.<\/figcaption><\/figure>\n\n\n\n<p>As you can see from the command&#8217;s output, the newly added Docker repo is now available under the &#8220;<em>Docker CE Stable &#8211; x86_64<\/em>&#8221; name. Additionally, you can also use the command below to verify that the Docker repo was properly added:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo dnf repolist<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-04.jpg\"><img decoding=\"async\" width=\"908\" height=\"190\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-04.jpg\" alt=\"List of available repositories in AlmaLinux.\" class=\"wp-image-175547\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-04.jpg 908w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-04-380x80.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/06\/alma-docker-install-04-768x161.jpg 768w\" sizes=\"(max-width: 908px) 100vw, 908px\" \/><\/a><figcaption class=\"wp-element-caption\">List of available repositories in AlmaLinux.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Install Docker on AlmaLinux 10<\/h3>\n\n\n\n<p>Finally, run the following command to install the latest up-to-date Docker release on AlmaLinux 10.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-05.jpg\"><img decoding=\"async\" width=\"1024\" height=\"583\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-05-1024x583.jpg\" alt=\"Install Docker on AlmaLinux 10.\" class=\"wp-image-175556\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-05-1024x583.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-05-380x216.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-05-768x437.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-05.jpg 1170w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Install Docker on AlmaLinux 10.<\/figcaption><\/figure>\n\n\n\n<p>This installs the following Docker components:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>docker-ce<\/strong>: The Docker engine itself.<\/li>\n\n\n\n<li><strong>docker-ce-cli<\/strong>: A command line tool that lets you talk to the Docker daemon.<\/li>\n\n\n\n<li><strong>containerd.io<\/strong>: A container runtime that manages the container\u2019s lifecycle.<\/li>\n\n\n\n<li><strong>docker-buildx-plugin<\/strong>: This extension for Docker enhances the capabilities of building images, mainly focusing on multi-platform builds.<\/li>\n\n\n\n<li><strong>docker-compose-plugin<\/strong>: A configuration management plugin that helps manage multi-container Docker applications using a single YAML file.<\/li>\n<\/ul>\n\n\n\n<p>Confirm with \u201c<em>Y<\/em>.\u201d Next, you will be asked to accept the Docker repo&#8217;s GPG key to be imported into your Alma system. Confirm again with \u201c<em>Y<\/em>.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-06.jpg\"><img decoding=\"async\" width=\"1024\" height=\"594\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-06-1024x594.jpg\" alt=\"Importing the repo's  GPG key.\" class=\"wp-image-175562\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-06-1024x594.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-06-380x220.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-06-768x445.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-06.jpg 1116w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Importing the repo&#8217;s GPG key.<\/figcaption><\/figure>\n\n\n\n<p>Wait for the installation to finish\u2014it should take no more than 30 seconds.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-07.jpg\"><img decoding=\"async\" width=\"1024\" height=\"238\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-07-1024x238.jpg\" alt=\"Install Docker on AlmaLinux 10.\" class=\"wp-image-175565\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-07-1024x238.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-07-380x88.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-07-768x178.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-07.jpg 1050w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Install Docker on AlmaLinux 10.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Enable and Start the Docker Service<\/h3>\n\n\n\n<p>Now, you can launch the Docker service and configure it to start automatically when the system boots:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo systemctl <span class=\"hljs-built_in\">enable<\/span> --now docker<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-08.jpg\"><img decoding=\"async\" width=\"1024\" height=\"112\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-08-1024x112.jpg\" alt=\"Start Docker and enable its systemd service so it starts automatically at boot.\" class=\"wp-image-175580\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-08-1024x112.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-08-380x42.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-08-768x84.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-08.jpg 1061w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Start Docker and enable its systemd service so it starts automatically at boot.<\/figcaption><\/figure>\n\n\n\n<p>To confirm that the Docker service has been enabled and started, run:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo systemctl status docker<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-09.jpg\"><img decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-09-1024x553.jpg\" alt=\"The Docker service is enabled and running.\" class=\"wp-image-175586\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-09-1024x553.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-09-380x205.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-09-768x415.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-09.jpg 1082w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">The Docker service is enabled and running.<\/figcaption><\/figure>\n\n\n\n<p>Alternatively, you can use the command below:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo systemctl is-active docker<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-10.jpg\"><img decoding=\"async\" width=\"938\" height=\"96\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-10.jpg\" alt=\"Confirmation that Docker has started.\" class=\"wp-image-175589\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-10.jpg 938w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-10-380x39.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-10-768x79.jpg 768w\" sizes=\"(max-width: 938px) 100vw, 938px\" \/><\/a><figcaption class=\"wp-element-caption\">Confirmation that Docker has started.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Verify Installation<\/h3>\n\n\n\n<p>We come to the most exciting part. Let\u2019s test if our new Docker installation works correctly by running a simple containerized application called \u201chello-world.\u201d<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo docker run hello-world<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-11.jpg\"><img decoding=\"async\" width=\"1024\" height=\"738\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-11-1024x738.jpg\" alt=\"Docker successfully installed, up &amp; running on AlmaLinux 10.\" class=\"wp-image-175592\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-11-1024x738.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-11-380x274.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-11-768x553.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-11.jpg 1030w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Docker successfully installed, up &amp; running on AlmaLinux 10.<\/figcaption><\/figure>\n\n\n\n<p>Congratulations! As we can see, everything works properly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enabling Non-root Users to Run Docker Commands<\/h2>\n\n\n\n<p>We have successfully installed Docker on our AlmaLinux 10 system so far. However, only root and users with\u00a0sudo privileges can execute Docker commands by default.<\/p>\n\n\n\n<p>In other words, if you attempt to run the&nbsp;<code>docker<\/code>&nbsp;command without prefixing it with&nbsp;<code>sudo<\/code>, you\u2019ll get an error message like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-12.jpg\"><img decoding=\"async\" width=\"1024\" height=\"140\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-12-1024x140.jpg\" alt=\"Docker permission denied.\" class=\"wp-image-175601\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-12-1024x140.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-12-380x52.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-12-768x105.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-12.jpg 1082w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Docker permission denied.<\/figcaption><\/figure>\n\n\n\n<p>But there is no room for worries. To run Docker commands as a non-root user, you must first add your user to the \u201c<em>docker<\/em>\u201d group. It is a simple task. To do that, type in the following:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo usermod -aG docker <span class=\"hljs-variable\">${USER}<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In the above command,&nbsp;\u201c<em>${USER}<\/em>\u201d&nbsp;is a&nbsp;system environment variable&nbsp;that contains your username. Then, run the following command to activate the changes to the group:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">newgrp docker<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>You can then execute <code>docker<\/code> commands without prefixing them with <code>sudo<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-13.jpg\"><img decoding=\"async\" width=\"1001\" height=\"136\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-13.jpg\" alt=\"Run the docker command as a regular user.\" class=\"wp-image-175604\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-13.jpg 1001w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-13-380x52.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/07\/alma-docker-install-13-768x104.jpg 768w\" sizes=\"(max-width: 1001px) 100vw, 1001px\" \/><\/a><figcaption class=\"wp-element-caption\">Run the docker command as a regular user.<\/figcaption><\/figure>\n\n\n\n<p>Remember that this temporary solution will work only for your current terminal session. In other words, if you close the terminal, you will either have to execute the <code>newgrp<\/code> command above again or prefix <code>docker<\/code> commands with <code>sudo<\/code>. To make this change system-wide and to last permanently, restart your AlmaLinux system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>As you can see, installing Docker on AlmaLinux 10 is an easy task with the right guidance. You\u2019re now ready to containerize applications and fully take advantage of Docker\u2019s efficiencies and portability.<\/p>\n\n\n\n<p>To learn more about Docker, check out its official&nbsp;<a href=\"https:\/\/docs.docker.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a>. Additionally, we recommend&nbsp;<a href=\"https:\/\/linuxiac.com\/how-to-install-and-use-docker-compose\/\">our detailed guide<\/a>&nbsp;to expanding your skills with Docker and learning how to run and manage multi-container applications using Docker Compose.<\/p>\n\n\n\n<p>If you encounter any issues or have questions, let me know in the comments section below. Thank you for following this tutorial, and happy Dockerizing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install Docker on AlmaLinux 10 easily\u2014ideal for users of Enterprise Linux systems who want a reliable container runtime.<\/p>\n","protected":false},"author":10,"featured_media":175241,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4417],"tags":[3248,5233,1439],"class_list":["post-175238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-linux-knowledge","tag-almalinux","tag-containerization","tag-docker"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts\/175238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/comments?post=175238"}],"version-history":[{"count":0,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts\/175238\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/media\/175241"}],"wp:attachment":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/media?parent=175238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/categories?post=175238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/tags?post=175238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}