{"id":182834,"date":"2025-08-13T13:01:15","date_gmt":"2025-08-13T13:01:15","guid":{"rendered":"https:\/\/linuxiac.com\/?p=182834"},"modified":"2025-08-25T13:19:09","modified_gmt":"2025-08-25T13:19:09","slug":"how-to-install-docker-on-debian-13-trixie","status":"publish","type":"post","link":"https:\/\/linuxiac.com\/how-to-install-docker-on-debian-13-trixie\/","title":{"rendered":"How to Install Docker on Debian 13 (Trixie): A Step-by-Step Guide"},"content":{"rendered":"\n<p><a href=\"https:\/\/linuxiac.com\/debian\/\">Debian<\/a> is one of the most well-known and respected names in the Linux world, which doesn\u2019t need much of an introduction. As a <a href=\"https:\/\/linuxiac.com\/general-purpose-linux-distros-explained\/\" data-type=\"post\" data-id=\"176330\">general-purpose distribution<\/a>, it\u2019s built a rock-solid reputation for stability and reliability, making it a go-to choice for millions of people\u2014from regular home users to large enterprises.<\/p>\n\n\n\n<p>With all these strengths, you can\u2019t go wrong choosing it for your containerization needs. And if you\u2019re here, it probably means you\u2019ve already made that choice and are ready to get Docker set up. Well, you\u2019re in the right place.<\/p>\n\n\n\n<p>This guide\u2014tested and proven in our lab\u2014will walk you step-by-step through installing Docker on <a href=\"https:\/\/linuxiac.com\/debian-13-trixie-released-this-is-whats-new\/\">Debian 13 (Trixie)<\/a>. Follow along, and in just a few minutes, you\u2019ll have everything up and running, ready to launch your containers. So, let&#8217;s get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Docker on Debian 13 (Trixie)<\/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 Debian 13 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 apt 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-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-01.jpg\"><img decoding=\"async\" width=\"983\" height=\"163\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-01.jpg\" alt=\"Refreshing the package base.\" class=\"wp-image-182858\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-01.jpg 983w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-01-380x63.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-01-768x127.jpg 768w\" sizes=\"(max-width: 983px) 100vw, 983px\" \/><\/a><figcaption class=\"wp-element-caption\">Refreshing the package base.<\/figcaption><\/figure>\n\n\n\n<p>If you\u2019re unsure about using Debian\u2019s APT package manager, I highly recommend checking out our \u201c<a href=\"https:\/\/linuxiac.com\/apt-command-in-linux\/\">Linux APT Command in Examples<\/a>.\u201d Now, back to the topic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Install Prerequisites<\/h3>\n\n\n\n<p>First, run the two commands below to update the package index and install the prerequisites necessary to&nbsp;add and use a new HTTPS repository.<\/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 apt install apt-transport-https ca-certificates curl gpg<\/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<h3 class=\"wp-block-heading\">Step 3: Add Docker\u2019s GPG Repo Key<\/h3>\n\n\n\n<p>Before we go any further, I want to clear something up. Docker is available for installation straight from the official <a href=\"https:\/\/packages.debian.org\/search?keywords=docker.io\" target=\"_blank\" rel=\"noreferrer noopener\">Debian repositories<\/a>. However, one disadvantage of this approach is that the version available is not always the most recent.<\/p>\n\n\n\n<p>That&#8217;s why, below, I will approach it a little differently, as I&#8217;ll show you how to install Docker on Debian 13 from the official Docker repository. The main advantage is that this way you always get the latest up-to-date version, plus it will&nbsp;<a href=\"https:\/\/linuxiac.com\/how-to-set-up-automatic-updates-on-debian\/\">automatically receive all future software updates<\/a>&nbsp;as they become available as part of the regular system updates.<\/p>\n\n\n\n<p>So, let&#8217;s now import the Docker GPG repository key. The command below downloads and stores it in a format that the APT package manager can use to verify Docker packages. This security feature ensures that the software you\u2019re installing is authentic.<\/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\">curl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/docker.gpg<\/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-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-02.jpg\"><img decoding=\"async\" width=\"1024\" height=\"87\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-02-1024x87.jpg\" alt=\"Add Docker\u2019s GPG repo key.\" class=\"wp-image-182879\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-02-1024x87.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-02-380x32.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-02-768x65.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-02.jpg 1061w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Notice that the command produces no output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Add Docker Repository<\/h3>\n\n\n\n<p>With the GPG key imported, it&#8217;s time to add the official Docker repository to our Trixie system so you can install and update Docker directly from upstream\u2019s maintained DEB packages.<\/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\"><span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"deb &#91;arch=<span class=\"hljs-variable\">$(dpkg --print-architecture)<\/span> signed-by=\/usr\/share\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/debian trixie stable\"<\/span> | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<\/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-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-03.jpg\"><img decoding=\"async\" width=\"1024\" height=\"107\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-03-1024x107.jpg\" alt=\"Add the official Docker repository to Debian 13.\" class=\"wp-image-182888\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-03-1024x107.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-03-380x40.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-03-768x81.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-03.jpg 1068w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Add the official Docker repository to Debian 13.<\/figcaption><\/figure>\n\n\n\n<p>As with the previous command, its execution produces no output. Then refresh your package list so the package manager knows about the new repository.<\/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 apt update<\/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-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-04.jpg\"><img decoding=\"async\" width=\"1007\" height=\"239\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-04.jpg\" alt=\"Refreshing the package base.\" class=\"wp-image-182897\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-04.jpg 1007w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-04-380x90.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-04-768x182.jpg 768w\" sizes=\"(max-width: 1007px) 100vw, 1007px\" \/><\/a><figcaption class=\"wp-element-caption\">Refreshing the package base.<\/figcaption><\/figure>\n\n\n\n<p>Great. As you can see from the command\u2019s output, the newly added Docker repo is now available, so our Debian 13 system can use it to install packages from it. 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-6\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">apt-cache policy<\/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\/08\/debian-13-install-docker-05.jpg\"><img decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-05-1024x542.jpg\" alt=\"List of available repositories in Debian 13.\" class=\"wp-image-182900\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-05-1024x542.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-05-380x201.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-05-768x406.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-05.jpg 1030w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">List of available repositories in Debian 13.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Install Docker on Debian 13 (Trixie)<\/h3>\n\n\n\n<p>Finally, run the following command to install the latest up-to-date Docker release on Debian 13.<\/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 apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/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\/08\/debian-13-install-docker-06.jpg\"><img decoding=\"async\" width=\"1024\" height=\"439\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-06-1024x439.jpg\" alt=\"Install Docker on Debian 13.\" class=\"wp-image-182909\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-06-1024x439.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-06-380x163.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-06-768x330.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-06.jpg 1044w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Install Docker on Debian 13.<\/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, with a focus 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 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\/08\/debian-13-install-docker-07.jpg\"><img decoding=\"async\" width=\"1024\" height=\"524\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-07-1024x524.jpg\" alt=\"Docker is successfully installed on Debian 13 (Trixie).\" class=\"wp-image-182912\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-07-1024x524.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-07-380x194.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-07-768x393.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-07.jpg 1089w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Docker is successfully installed on Debian 13 (Trixie).<\/figcaption><\/figure>\n\n\n\n<p>That\u2019s all. Docker should now be installed; the service should be started and enabled to run automatically on boot by default. Let&#8217;s verify.<\/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\/08\/debian-13-install-docker-08.jpg\"><img decoding=\"async\" width=\"944\" height=\"97\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-08.jpg\" alt=\"Check the status of the Docker service.\" class=\"wp-image-182924\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-08.jpg 944w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-08-380x39.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-08-768x79.jpg 768w\" sizes=\"(max-width: 944px) 100vw, 944px\" \/><\/a><figcaption class=\"wp-element-caption\">Check the status of the Docker service.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5-verify-the-docker-installation\">Step 6: Verify the Docker 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-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-09.jpg\"><img decoding=\"async\" width=\"959\" height=\"743\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-09.jpg\" alt=\"Docker successfully installed, up &amp; running on Debian 13 (Trixie).\" class=\"wp-image-182927\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-09.jpg 959w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-09-380x294.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-09-768x595.jpg 768w\" sizes=\"(max-width: 959px) 100vw, 959px\" \/><\/a><figcaption class=\"wp-element-caption\">Docker successfully installed, up &amp; running on Debian 13 (Trixie).<\/figcaption><\/figure>\n\n\n\n<p>Well done! 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>So far, we have successfully installed Docker on Debian 13. However, as you may have noticed, only root and users with&nbsp;sudo privileges can execute <code>docker<\/code> commands by default.<\/p>\n\n\n\n<p>In other words, if you attempt to run some&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-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-10.jpg\"><img decoding=\"async\" width=\"971\" height=\"142\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-10.jpg\" alt=\"Docker permission denied.\" class=\"wp-image-182930\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-10.jpg 971w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-10-380x56.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-10-768x112.jpg 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/a><figcaption class=\"wp-element-caption\">Docker permission denied.<\/figcaption><\/figure>\n\n\n\n<p>But there is no room for worries. We&#8217;ll make things more convenient right away. To run <code>docker<\/code> 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\/08\/debian-13-install-docker-11.jpg\"><img decoding=\"async\" width=\"971\" height=\"142\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-11.jpg\" alt=\"Run the docker command as a regular user.\" class=\"wp-image-182939\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-11.jpg 971w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-11-380x56.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2025\/08\/debian-13-install-docker-11-768x112.jpg 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/a><figcaption class=\"wp-element-caption\">Run the docker command as a regular user.<\/figcaption><\/figure>\n\n\n\n<p>Remember that this is a temporary solution. It 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, reboot your Debian system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>As you can see from this guide, installing Docker on Debian 13 (Trixie) is a simple task and can be completed in minutes with the right guidance. Now, you have a reliable foundation perfectly suited for managing containerized workloads.<\/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, I recommend&nbsp;<a href=\"https:\/\/linuxiac.com\/how-to-install-and-use-docker-compose\/\">our detailed guide<\/a>&nbsp;to expanding your Docker skills and learning how to run and manage multi-container applications using Docker Compose.<\/p>\n\n\n\n<p>Thanks for your time! I hope you find this guide helpful. As always, your feedback and comments are most welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install Docker on Debian 13 (Trixie) from start to finish and get your containerization environment ready in minutes.<\/p>\n","protected":false},"author":10,"featured_media":182843,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4417],"tags":[5233,5921,1439],"class_list":["post-182834","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-linux-knowledge","tag-containerization","tag-debian-13","tag-docker"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts\/182834","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=182834"}],"version-history":[{"count":1,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts\/182834\/revisions"}],"predecessor-version":[{"id":185066,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts\/182834\/revisions\/185066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/media\/182843"}],"wp:attachment":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/media?parent=182834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/categories?post=182834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/tags?post=182834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}