{"id":1994,"date":"2023-10-15T12:30:00","date_gmt":"2023-10-15T17:30:00","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=1994"},"modified":"2023-10-04T03:07:46","modified_gmt":"2023-10-04T08:07:46","slug":"how-to-install-docker-on-debian-12","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/","title":{"rendered":"How to Install Docker on Debian 12"},"content":{"rendered":"\n<p>Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Docker Engine was introduced in 2013 as an industry-standard tool to provide a universal packaging method. Today, developers adopt this tool to create applications and improve the cloud. The docker containers have their own system and a lock function that cannot interfere with the operation of the main server. This tutorial will show you how to install Docker on Debian 12.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Debian 12 VPS<\/li>\n\n\n\n<li>SSH access with sudo privileges or root access.<\/li>\n<\/ul>\n\n\n\n<p>In addition, it is recommended to have at least 2GB of SWAP memory, even if you have enough available RAM.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1. Update the System<\/h2>\n\n\n\n<p>First of all, we need to log in to our Debian 12 VPS through SSH:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>Replace &#8220;root&#8221; with a user that has sudo privileges or root if necessary. Additionally, replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; with your server&#8217;s respective IP address and SSH port number. Next, let&#8217;s make sure that we&#8217;re on Debian 12. You can do that like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lsb_release -a<\/pre>\n\n\n\n<p>The command should return an output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">No LSB modules are available.<br>Distributor ID: Debian<br>Description: Debian GNU\/Linux 12 (bookworm)<br>Release: 12<br>Codename: bookworm<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2. Install Docker<\/h2>\n\n\n\n<p>There are some methods to install Docker on Debian 12 system, depending on your needs:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Docker Engine from Docker&#8217;s Apt repository.<\/h3>\n\n\n\n<p>This is by far the best and most recommended way to install Docker because we can perform the update easily. Before installing Docker Engine for the first time on a new host machine, you need to configure the Docker Apt repository. Then you can install and update Docker from the repository.<br>Execute these commands to add and set up Docker&#8217;s Apt repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt update\n# apt install ca-certificates curl gnupg\n# install -m 0755 -d \/etc\/apt\/keyrings\n# curl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg | gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg\n# chmod a+r \/etc\/apt\/keyrings\/docker.gpg<\/pre>\n\n\n\n<p>Then, add Docker&#8217;s APT repository to the APT source.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo \\\n  \"deb [arch=\"$(dpkg --print-architecture)\" signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/debian \\\n  \"$(. \/etc\/os-release &amp;&amp; echo \"$VERSION_CODENAME\")\" stable\" | \\\n   tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<\/pre>\n\n\n\n<p>Once added, update the package index files on the system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt update<\/pre>\n\n\n\n<p>Finally, install the docker packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y<\/pre>\n\n\n\n<p>That&#8217;s it; docker has been installed on your Debian system. We can run this command below to verify the installation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># docker version<\/pre>\n\n\n\n<p>It will show you an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Client: Docker Engine - Community\n Version:           24.0.6\n API version:       1.43\n Go version:        go1.20.7\n Git commit:        ed223bc\n Built:             Mon Sep  4 12:32:10 2023\n OS\/Arch:           linux\/amd64\n Context:           default\n\nServer: Docker Engine - Community\n Engine:\n  Version:          24.0.6\n  API version:      1.43 (minimum version 1.12)\n  Go version:       go1.20.7\n  Git commit:       1a79695\n  Built:            Mon Sep  4 12:32:10 2023\n  OS\/Arch:          linux\/amd64\n  Experimental:     false\n containerd:\n  Version:          1.6.22\n  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca\n runc:\n  Version:          1.1.8\n  GitCommit:        v1.1.8-0-g82f18fe\n docker-init:\n  Version:          0.19.0\n  GitCommit:        de40ad0<\/pre>\n\n\n\n<p>Also, you can try running a simple docker image, and invoke the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># docker run hello-world<\/pre>\n\n\n\n<p>The command above will download a test image and run it in a container. When the container runs, it prints a confirmation message and then exits.<br>If you run the command as a regular system user without sudo privileges, you might see an error message. So, if you want to run docker commands without sudo, you can add the user to the docker&#8217;s group by executing this command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># usermod -aG docker $USER\n# newgrp docker<\/pre>\n\n\n\n<p>Do not forget to replace $USER with your actual system user.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install it and manage the upgrade manually.<\/h3>\n\n\n\n<p>This method allows us to install docker by downloading .deb packages and then simply installing the packages. To proceed with this installation method, follow these steps.<\/p>\n\n\n\n<p>Navigate to the <a href=\"https:\/\/download.docker.com\/linux\/debian\/dists\/bookworm\/pool\/stable\/amd64\/\" title=\"\">Docker download page<\/a>.<\/p>\n\n\n\n<p>Download the following deb files for the Docker Engine, CLI, containers, and Docker Compose packages:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">containerd.io_&lt;version&gt;_&lt;arch&gt;.deb\ndocker-ce_&lt;version&gt;_&lt;arch&gt;.deb\ndocker-ce-cli_&lt;version&gt;_&lt;arch&gt;.deb\ndocker-buildx-plugin_&lt;version&gt;_&lt;arch&gt;.deb\ndocker-compose-plugin_&lt;version&gt;_&lt;arch&gt;.deb<\/pre>\n\n\n\n<p>For example, we will download these files.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget https:\/\/download.docker.com\/linux\/debian\/dists\/bookworm\/pool\/stable\/amd64\/containerd.io_1.6.22-1_amd64.deb<br>wget https:\/\/download.docker.com\/linux\/debian\/dists\/bookworm\/pool\/stable\/amd64\/docker-ce_24.0.6-1~debian.12~bookworm_amd64.deb<br>wget https:\/\/download.docker.com\/linux\/debian\/dists\/bookworm\/pool\/stable\/amd64\/docker-ce-cli_24.0.6-1~debian.12~bookworm_amd64.deb<br>wget https:\/\/download.docker.com\/linux\/debian\/dists\/bookworm\/pool\/stable\/amd64\/docker-buildx-plugin_0.11.2-1~debian.12~bookworm_amd64.deb<br>wget https:\/\/download.docker.com\/linux\/debian\/dists\/bookworm\/pool\/stable\/amd64\/docker-compose-plugin_2.21.0-1~debian.12~bookworm_amd64.deb<\/pre>\n\n\n\n<p>Install the files by running this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dpkg -i .\/containerd.io_&lt;version&gt;_&lt;arch&gt;.deb \\\n  .\/docker-ce_&lt;version&gt;_&lt;arch&gt;.deb \\\n  .\/docker-ce-cli_&lt;version&gt;_&lt;arch&gt;.deb \\\n  .\/docker-buildx-plugin_&lt;version&gt;_&lt;arch&gt;.deb \\\n  .\/docker-compose-plugin_&lt;version&gt;_&lt;arch&gt;.deb<\/pre>\n\n\n\n<p>Or, if you download the same files as mentioned in this article, run this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dpkg -i .\/containerd.io_1.6.22-1_amd64.deb \\\n  .\/docker-ce_24.0.6-1~debian.12~bookworm_amd64.deb \\\n  .\/docker-ce-cli_24.0.6-1~debian.12~bookworm_amd64.deb \\\n  .\/docker-buildx-plugin_0.11.2-1~debian.12~bookworm_amd64.deb \\\n  .\/docker-compose-plugin_2.21.0-1~debian.12~bookworm_amd64.deb<\/pre>\n\n\n\n<p>The Docker daemon starts automatically upon installation.<\/p>\n\n\n\n<p>Verify that the Docker Engine installation is successful by running the hello-world image:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># service docker start\n# docker run hello-world<\/pre>\n\n\n\n<p>Another method is to install docker using a script. But, this is recommended only for test and development environments. If you want to try this method, you can execute these commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># curl -fsSL https:\/\/get.docker.com -o get-docker.sh<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"># sh get-docker.sh<\/pre>\n\n\n\n<p>The script will install and start docker immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. Docker Commands<\/h2>\n\n\n\n<p>After installing docker, you can create and run docker images. These are some examples of docker commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker search<\/pre>\n\n\n\n<p>This command will help you search for an application that is available in docker.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker pull<\/pre>\n\n\n\n<p>Docker pull is used for taking the application from the official Docker Hub. For example, we can pull WordPress. docker pull wordpress<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker run<\/pre>\n\n\n\n<p>docker run command is used for creating a container from an image. As seen in the previous step, we ran the docker run hello-world command<\/p>\n\n\n\n<p>For more docker commands, you can check it with <em>docker &#8211;help<\/em> command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# docker help\n\nUsage:  docker [OPTIONS] COMMAND\n\nA self-sufficient runtime for containers\n\nOptions:\n      --config string      Location of client config files (default \"\/root\/.docker\")\n  -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with \"docker context use\")\n  -D, --debug              Enable debug mode\n  -H, --host list          Daemon socket(s) to connect to\n  -l, --log-level string   Set the logging level (\"debug\"|\"info\"|\"warn\"|\"error\"|\"fatal\") (default \"info\")\n      --tls                Use TLS; implied by --tlsverify\n      --tlscacert string   Trust certs signed only by this CA (default \"\/root\/.docker\/ca.pem\")\n      --tlscert string     Path to TLS certificate file (default \"\/root\/.docker\/cert.pem\")\n      --tlskey string      Path to TLS key file (default \"\/root\/.docker\/key.pem\")\n      --tlsverify          Use TLS and verify the remote\n  -v, --version            Print version information and quit<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>That&#8217;s it! You have successfully installed Docker on your Debian 12 system.<\/p>\n\n\n\n<p>Now, it&#8217;s your opportunity to share:<\/p>\n\n\n\n<p>Did you find any of the steps confusing, or do you think we left something out? We look forward to hearing your thoughts, so please leave a comment below.<\/p>\n\n\n\n<p>Whether you have an <a href=\"https:\/\/linuxcloudvps.com\/cloud-vps.html\" title=\"\">active VPS with us<\/a> or not, if you enjoyed this post, please share it with your friends on social networks or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers.<\/p>\n","protected":false},"author":2,"featured_media":2019,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[271,13],"tags":[110,287],"class_list":["post-1994","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","tag-debian","tag-docker"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Docker on Debian 12 | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers. Docker\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Docker on Debian 12 | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers. Docker\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-15T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/09\/how-to-install-docker-on-debian-12.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to Install Docker on Debian 12\",\"datePublished\":\"2023-10-15T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/\"},\"wordCount\":745,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/how-to-install-docker-on-debian-12.webp\",\"keywords\":[\"debian\",\"docker\"],\"articleSection\":[\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/\",\"name\":\"How to Install Docker on Debian 12 | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/how-to-install-docker-on-debian-12.webp\",\"datePublished\":\"2023-10-15T17:30:00+00:00\",\"description\":\"Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers. Docker\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/how-to-install-docker-on-debian-12.webp\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/how-to-install-docker-on-debian-12.webp\",\"width\":742,\"height\":576,\"caption\":\"how to install docker on debian 12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-docker-on-debian-12\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Docker on Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Docker on Debian 12 | LinuxCloudVPS Blog","description":"Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers. Docker","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Docker on Debian 12 | LinuxCloudVPS Blog","og_description":"Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers. Docker","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2023-10-15T17:30:00+00:00","og_image":[{"width":742,"height":576,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/09\/how-to-install-docker-on-debian-12.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to Install Docker on Debian 12","datePublished":"2023-10-15T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/"},"wordCount":745,"commentCount":1,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/09\/how-to-install-docker-on-debian-12.webp","keywords":["debian","docker"],"articleSection":["Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/","name":"How to Install Docker on Debian 12 | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/09\/how-to-install-docker-on-debian-12.webp","datePublished":"2023-10-15T17:30:00+00:00","description":"Docker is an open-source container runtime that allows you to build, run, and manage applications in isolated environments called containers. Docker","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/09\/how-to-install-docker-on-debian-12.webp","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/09\/how-to-install-docker-on-debian-12.webp","width":742,"height":576,"caption":"how to install docker on debian 12"},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-docker-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Docker on Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=1994"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1994\/revisions"}],"predecessor-version":[{"id":2024,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1994\/revisions\/2024"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/2019"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=1994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=1994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=1994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}