{"id":599,"date":"2025-12-29T10:21:25","date_gmt":"2025-12-29T09:21:25","guid":{"rendered":"https:\/\/peter.otten.nu\/?p=599"},"modified":"2025-12-29T10:21:27","modified_gmt":"2025-12-29T09:21:27","slug":"installatie-docker","status":"publish","type":"post","link":"https:\/\/peter.otten.nu\/?p=599","title":{"rendered":"Installatie Docker"},"content":{"rendered":"\n<p><br>To get started with Docker Engine on Ubuntu, make sure you\u00a0meet the prerequisites, and then follow the\u00a0installation steps.<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/\">https:\/\/docs.docker.com\/engine\/install\/ubuntu\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\"><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#prerequisites\">Prerequisites<\/a><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"firewall-limitations\"><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#firewall-limitations\">Firewall limitations<\/a><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Warning<\/p>\n\n\n\n<p>Before you install Docker, make sure you consider the following security implications and firewall incompatibilities.<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you use ufw or firewalld to manage firewall settings, be aware that when you expose container ports using Docker, these ports bypass your firewall rules. For more information, refer to&nbsp;<a href=\"https:\/\/docs.docker.com\/engine\/network\/packet-filtering-firewalls\/#docker-and-ufw\">Docker and ufw<\/a>.<\/li>\n\n\n\n<li>Docker is only compatible with&nbsp;<code>iptables-nft<\/code>&nbsp;and&nbsp;<code>iptables-legacy<\/code>. Firewall rules created with&nbsp;<code>nft<\/code>&nbsp;are not supported on a system with Docker installed. Make sure that any firewall rulesets you use are created with&nbsp;<code>iptables<\/code>or&nbsp;<code>ip6tables<\/code>, and that you add them to the&nbsp;<code>DOCKER-USER<\/code>&nbsp;chain, see&nbsp;<a href=\"https:\/\/docs.docker.com\/engine\/network\/packet-filtering-firewalls\/\">Packet filtering and firewalls<\/a>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"os-requirements\"><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#os-requirements\">OS requirements<\/a><\/h3>\n\n\n\n<p>To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu Questing 25.10<\/li>\n\n\n\n<li>Ubuntu Plucky 25.04<\/li>\n\n\n\n<li>Ubuntu Noble 24.04 (LTS)<\/li>\n\n\n\n<li>Ubuntu Jammy 22.04 (LTS)<\/li>\n<\/ul>\n\n\n\n<p>Docker Engine for Ubuntu is compatible with x86_64 (or amd64), armhf, arm64, s390x, and ppc64le (ppc64el) architectures.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Note<\/p>\n\n\n\n<p>Installation on Ubuntu derivative distributions, such as Linux Mint, is not officially supported (though it may work).<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"uninstall-old-versions\"><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#uninstall-old-versions\">Uninstall old versions<\/a><\/h3>\n\n\n\n<p>Before you can install Docker Engine, you need to uninstall any conflicting packages.<\/p>\n\n\n\n<p>Your Linux distribution may provide unofficial Docker packages, which may conflict with the official packages provided by Docker. You must uninstall these packages before you install the official version of Docker Engine.<\/p>\n\n\n\n<p>The unofficial packages to uninstall are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>docker.io<\/code><\/li>\n\n\n\n<li><code>docker-compose<\/code><\/li>\n\n\n\n<li><code>docker-compose-v2<\/code><\/li>\n\n\n\n<li><code>docker-doc<\/code><\/li>\n\n\n\n<li><code>podman-docker<\/code><\/li>\n<\/ul>\n\n\n\n<p>Moreover, Docker Engine depends on&nbsp;<code>containerd<\/code>&nbsp;and&nbsp;<code>runc<\/code>. Docker Engine bundles these dependencies as one bundle:&nbsp;<code>containerd.io<\/code>. If you have installed the&nbsp;<code>containerd<\/code>&nbsp;or&nbsp;<code>runc<\/code>&nbsp;previously, uninstall them to avoid conflicts with the versions bundled with Docker Engine.<\/p>\n\n\n\n<p>Run the following command to uninstall all conflicting packages:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc | cut -f1)\n<\/code><\/pre>\n\n\n\n<p><code>apt<\/code>&nbsp;might report that you have none of these packages installed.<\/p>\n\n\n\n<p>Images, containers, volumes, and networks stored in&nbsp;<code>\/var\/lib\/docker\/<\/code>&nbsp;aren&#8217;t automatically removed when you uninstall Docker. If you want to start with a clean installation, and prefer to clean up any existing data, read the&nbsp;<a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#uninstall-docker-engine\">uninstall Docker Engine<\/a>&nbsp;section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installation-methods\"><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#installation-methods\">Installation methods<\/a><\/h2>\n\n\n\n<p>You can install Docker Engine in different ways, depending on your needs:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Docker Engine comes bundled with&nbsp;<a href=\"https:\/\/docs.docker.com\/desktop\/setup\/install\/linux\/\">Docker Desktop for Linux<\/a>. This is the easiest and quickest way to get started.<\/li>\n\n\n\n<li>Set up and install Docker Engine from&nbsp;<a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#install-using-the-repository\">Docker&#8217;s&nbsp;<code>apt<\/code>&nbsp;repository<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#install-from-a-package\">Install it manually<\/a>&nbsp;and manage upgrades manually.<\/li>\n\n\n\n<li>Use a&nbsp;<a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#install-using-the-convenience-script\">convenience script<\/a>. Only recommended for testing and development environments.<\/li>\n<\/ul>\n\n\n\n<p>Apache License, Version 2.0. See&nbsp;<a href=\"https:\/\/github.com\/moby\/moby\/blob\/master\/LICENSE\">LICENSE<\/a>&nbsp;for the full license.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-using-the-repository\"><a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/#install-using-the-repository\">Install using the&nbsp;<code>apt<\/code>&nbsp;repository<\/a><\/h3>\n\n\n\n<p>Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker&nbsp;<code>apt<\/code>&nbsp;repository. Afterward, you can install and update Docker from the repository.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Set up Docker&#8217;s&nbsp;<code>apt<\/code>&nbsp;repository.<code># Add Docker's official GPG key: sudo apt update sudo apt install ca-certificates curl sudo install -m 0755 -d \/etc\/apt\/keyrings sudo curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg -o \/etc\/apt\/keyrings\/docker.asc sudo chmod a+r \/etc\/apt\/keyrings\/docker.asc # Add the repository to Apt sources: sudo tee \/etc\/apt\/sources.list.d\/docker.sources &lt;&lt;EOF Types: deb URIs: https:\/\/download.docker.com\/linux\/ubuntu Suites: $(. \/etc\/os-release &amp;&amp; echo \"${UBUNTU_CODENAME:-$VERSION_CODENAME}\") Components: stable Signed-By: \/etc\/apt\/keyrings\/docker.asc EOF sudo apt update<\/code><\/li>\n\n\n\n<li>Install the Docker packages.Latest&nbsp;Specific versionTo install the latest version, run:<code> sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin <\/code>NoteThe Docker service starts automatically after installation. To verify that Docker is running, use:<code> sudo systemctl status docker <\/code>Some systems may have this behavior disabled and will require a manual start:<code> sudo systemctl start docker<\/code><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>To get started with Docker Engine on Ubuntu, make sure you\u00a0meet the prerequisites, and then follow the\u00a0installation steps. https:\/\/docs.docker.com\/engine\/install\/ubuntu\/ Prerequisites Firewall limitations Warning Before you install Docker, make sure you consider the following security implications and firewall incompatibilities. OS requirements To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/peter.otten.nu\/?p=599\" class=\"more-link\">Lees verder <span class=\"screen-reader-text\">&#8220;Installatie Docker&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"categories":[147],"tags":[],"class_list":["post-599","post","type-post","status-publish","format-standard","hentry","category-huis-automation"],"_links":{"self":[{"href":"https:\/\/peter.otten.nu\/index.php?rest_route=\/wp\/v2\/posts\/599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peter.otten.nu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peter.otten.nu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peter.otten.nu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peter.otten.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=599"}],"version-history":[{"count":1,"href":"https:\/\/peter.otten.nu\/index.php?rest_route=\/wp\/v2\/posts\/599\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/peter.otten.nu\/index.php?rest_route=\/wp\/v2\/posts\/599\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/peter.otten.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peter.otten.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peter.otten.nu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}