{"id":2296,"date":"2021-03-08T13:23:00","date_gmt":"2021-03-08T11:23:00","guid":{"rendered":"https:\/\/www.virtono.com\/community\/?p=2296"},"modified":"2021-03-08T06:45:34","modified_gmt":"2021-03-08T04:45:34","slug":"docker-installation","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/","title":{"rendered":"Docker Installation"},"content":{"rendered":"\n<p>I suggest you get machine to follow along this part. So here&#8217;s a little plug of our own: <a href=\"https:\/\/www.virtono.com\/cloud-vps\" class=\"rank-math-link\">Cloud VPS, for as little as \u20ac2.95 a month.<\/a><\/p>\n\n\n\n<p>This article is a part of our complete series of articles on Docker. Click here to access the <a href=\"https:\/\/www.virtono.com\/community\/news-announcements\/docker-deep-dive---virtono\/\" class=\"rank-math-link\">Free Series<\/a>.<\/p>\n\n\n\n<p>While Docker was initially only used on Linux distributions, the current version of the container engine is&nbsp;<strong>largely platform-<\/strong>&nbsp;independent.&nbsp;Installation packages are available for Microsoft Windows and macOS as well as for cloud services such as Amazon Web Services (AWS) and Microsoft Azure.&nbsp;Supported&nbsp;<strong>Linux distributions<\/strong>&nbsp;include:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>CentOS<\/li><li>Debian<\/li><li>Fedora<\/li><li>Oracle Linux<\/li><li>Red Hat Enterprise Linux<\/li><li>Ubuntu<\/li><li>openSUSE<\/li><li>SUSE Linux Enterprise<\/li><\/ul>\n\n\n\n<p>There are also&nbsp;<strong>Docker distributions maintained by communities<\/strong>&nbsp;for:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Arch Linux<\/li><li>CRUX Linux<\/li><li>Gentoo Linux<\/li><\/ul>\n\n\n\n<p>In the following, we illustrate the installation process of the Docker engine using the example of the popular Linux distribution&nbsp;<strong>Ubuntu<\/strong>&nbsp;.&nbsp;You&nbsp;&nbsp; can find&nbsp;detailed&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.docker.com\/engine\/installation\/\" target=\"_blank\" class=\"rank-math-link\"><strong>installation instructions for the other platforms<\/strong><\/a>&nbsp;in the English-language Docker documentation.<\/p>\n\n\n\n<p>Depending on the requirements and prerequisites to be met, you have three different options for installing the Docker container platform on your Ubuntu system:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Manual installation via DEB package<\/strong><\/li><li><strong>Installation from the Docker repository<\/strong><\/li><li><strong>Installation from the Ubuntu repository<\/strong><\/li><\/ul>\n\n\n\n<p>Before doing this, however, you should take a look at the system requirements for the Docker engine.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/#System_requirements\" title=\"System requirements\">System requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/#Before_the_Docker_installation\" title=\"Before the Docker installation\">Before the Docker installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/#Manual_installation_via_DEB_package\" title=\"Manual installation via DEB package\">Manual installation via DEB package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/#Installation_from_the_Docker_repository\" title=\"Installation from the Docker repository\">Installation from the Docker repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/#Installation_from_the_Ubuntu_repository\" title=\"Installation from the Ubuntu repository\">Installation from the Ubuntu repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/#Test_run\" title=\"Test run\">Test run<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/#Uninstall_Docker\" title=\"Uninstall Docker\">Uninstall Docker<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"System_requirements\"><\/span>System requirements<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To install the current version of Docker on your Ubuntu distribution, you need the&nbsp;<strong>64-bit version of<\/strong>&nbsp;one of the following Ubuntu versions:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Yakkety 16.10<\/li><li>Xenial 16.04 (LTS)<\/li><li>Trusty 14.04 (LTS)<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Before_the_Docker_installation\"><\/span>Before the Docker installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The following tutorial is based on the&nbsp;<strong>Ubuntu version Xenial 16.04 (LTS)<\/strong>&nbsp;.&nbsp;For Yakkety 16.10, the installation process follows the same steps.&nbsp;Users of Trusty 14.04 (LTS) are&nbsp;recommended to&nbsp;install the&nbsp;<em>linux-image-extra- * packages<\/em>&nbsp;before installing Docker&nbsp;.&nbsp;These enable the Docker engine to access the AUFS storage drivers.<\/p>\n\n\n\n<p>The integrated&nbsp;<strong>APT package manager<\/strong>&nbsp;offers a convenient method of providing a Linux system with updates<strong>(Advanced Packaging Tool)<\/strong>&nbsp;.&nbsp;To&nbsp;install&nbsp;the&nbsp;<strong>additional packages for Trusty 14.04<\/strong>&nbsp;, perform the following steps:<\/p>\n\n\n\n<p><strong>1. Call up the terminal:<\/strong>&nbsp;Start Ubuntu and open the terminal &#8211; for example using the key combination [CTRL] + [ALT] + [T].<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-terminal-ubuntu.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-terminal-ubuntu.png?w=750&#038;ssl=1\" alt=\"The terminal under Ubuntu Xenial 16.04 (LTS)\" title=\"The terminal under Ubuntu Xenial 16.04 (LTS)\"\/><\/a><figcaption>To perform actions in the terminal as administrator, precede program calls with the command sudo.<\/figcaption><\/figure>\n\n\n\n<p><strong>2. Update package lists:<\/strong>&nbsp;Enter the following command to update the local package index of your operating system.&nbsp;Confirm your entry with the [ENTER] key.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get update<\/code><\/pre>\n\n\n\n<p>The addition&nbsp;<em>sudo<\/em>&nbsp;enables you to execute commands as administrator (superuser \u201croot\u201d).&nbsp;Certain commands may require root privileges to run.&nbsp;In this case, Ubuntu will prompt you for the administrator password.&nbsp;Alternatively, you have the option of&nbsp;permanently changing to the administrator role&nbsp;via&nbsp;<em>sudo -s<\/em>&nbsp;.&nbsp;tip<\/p>\n\n\n\n<p>To install the Docker container platform, you need root rights for the respective host system.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-terminal-passwort.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-terminal-passwort.png?w=750&#038;ssl=1\" alt=\"Password query in the Ubuntu terminal\" title=\"Password query in the Ubuntu terminal\"\/><\/a><figcaption>Note: If you enter a password in the Ubuntu Terminal, you will not see any wildcard characters<\/figcaption><\/figure>\n\n\n\n<p>If you have identified yourself as the root user with a password, Ubuntu starts the update process.&nbsp;The status is displayed in the terminal.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-paketverwaltung-apt.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-paketverwaltung-apt.png?w=750&#038;ssl=1\" alt=\"Package management in the Ubuntu terminal via APT\" title=\"Package management in the Ubuntu terminal via APT\"\/><\/a><figcaption>The command Ubuntu sudo apt-get update brings the list of available packages up to date<\/figcaption><\/figure>\n\n\n\n<p><strong>3.<\/strong>&nbsp;Install&nbsp;<strong>additional packages:<\/strong>&nbsp;If all package descriptions have been updated, you can proceed to the installation of new packages.&nbsp;The APT package manager provides the&nbsp;<em>apt-get install &#8220;PackageName&#8221;<\/em>&nbsp;command&nbsp;for this purpose.&nbsp;To load the recommended additional packages for Trusty 14.04 from the Ubuntu repository and install them on your system, enter the following command in the terminal and confirm with [ENTER].<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install -y --no-install-recommends \\\n    linux-image-extra-$(uname -r) \\\n    linux-image-extra-virtual<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-paketinstallation.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-paketinstallation.png?w=750&#038;ssl=1\" alt=\"Package installation via the Ubuntu terminal\" title=\"Package installation via the Ubuntu terminal\"\/><\/a><figcaption>Before installing new packages, it is recommended that you update the local package lists<\/figcaption><\/figure>\n\n\n\n<p>After the additional packages forTrusty 14.04 have been downloaded, all functions of the Docker platform are also available on this Ubuntu version.<\/p>\n\n\n\n<p>Not sure what version of Ubuntu your system is?&nbsp;Or are you not sure whether you can provide the 64-bit architecture required for a Docker installation?&nbsp;<strong>Kernel version and system architecture<\/strong>&nbsp;can be determined in the Ubuntu terminal using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo uname -rm <\/code><\/pre>\n\n\n\n<p>The respective&nbsp;<strong>Ubuntu version<\/strong>&nbsp;, the&nbsp;<strong>release<\/strong>&nbsp;and the&nbsp;<strong>nickname<\/strong>&nbsp;can be displayed by entering the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo lsb_release \u2013a<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-systeminformationen.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-systeminformationen.png?w=750&#038;ssl=1\" alt=\"Get Ubuntu system information through the terminal\" title=\"Get Ubuntu system information through the terminal\"\/><\/a><figcaption>System information can also be called up conveniently via the terminal under Ubuntu<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Manual_installation_via_DEB_package\"><\/span>Manual installation via DEB package<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In principle, Docker can be downloaded as a DEB package and&nbsp;<strong>installed manually<\/strong>&nbsp;.&nbsp;The required installation package is available at the following URL:<\/p>\n\n\n\n<p><a href=\"https:\/\/apt.dockerproject.org\/repo\/pool\/main\/d\/docker-engine\/\" target=\"_blank\" rel=\"noopener\">https:\/\/apt.dockerproject.org\/repo\/pool\/main\/d\/docker-engine\/<\/a><\/p>\n\n\n\n<p>Download the DEB file of the desired Ubuntu version and start the installation process with this command from the Ubuntu terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo dpkg -i \/path\/to\/package.deb <\/code><\/pre>\n\n\n\n<p>In the case of manual installation,&nbsp;<strong>all software updates<\/strong>&nbsp;must also&nbsp;<strong>be<\/strong>&nbsp;done&nbsp;<strong>manually<\/strong>&nbsp;.&nbsp;The Docker documentation therefore recommends using Docker&#8217;s own repository.&nbsp;This makes it possible to conveniently install the container platform from the Ubuntu terminal and keep it up to date.<\/p>\n\n\n\n<p>Below we illustrate the Docker installation according to the recommended practice.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installation_from_the_Docker_repository\"><\/span>Installation from the Docker repository<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The recommended way to create your own container platform is to install it from the Docker repository.&nbsp;We will show you how to configure your system so that the APT package manager&nbsp;<strong>can access the Docker repository via HTTPS<\/strong>&nbsp;.<\/p>\n\n\n\n<p><strong>1.Install packages:<\/strong>&nbsp;Enter the following command to install the packages required to access the Docker repository:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install -y --no-install-recommends \\\n    apt-transport-https \\\n    ca-certificates \\\n    curl \\\n    software-properties-common<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-install-konfigurationspakete.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-install-konfigurationspakete.png?w=750&#038;ssl=1\" alt=\"Installation of the configuration packages via the Ubuntu terminal\" title=\"Installation of the configuration packages via the Ubuntu terminal\"\/><\/a><figcaption>Follow the installation process for the output in the terminal<\/figcaption><\/figure>\n\n\n\n<p><strong>2.<\/strong>&nbsp;Add&nbsp;<strong>GPG Key:<\/strong>&nbsp;Add Docker&#8217;s official GPG key.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ curl -fsSL https:\/\/apt.dockerproject.org\/gpg | sudo apt-key add -<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-gpg-schluessel.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-gpg-schluessel.png?w=750&#038;ssl=1\" alt=\"Adding the GPG key via apt-key add\" title=\"Adding the GPG key via apt-key add\"\/><\/a><figcaption>If the selected key was successfully added, Ubuntu returns an &#8220;OK&#8221; in the terminal<\/figcaption><\/figure>\n\n\n\n<p><strong>3.&nbsp;<\/strong><strong>verify GPG key:<\/strong>&nbsp;Make sure that the GPG key with the following ID matches:&nbsp;<em>5811 8E89 F3A9 1289 7C07 0ADB F762 2157 2C52 609D<\/em>&nbsp;.&nbsp;Use the following command for this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D<\/code><\/pre>\n\n\n\n<p>The output appears in the terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pub   4096R\/2C52609D 2015-07-14\n        Key fingerprint = 5811 8E89 F3A9 1289 7C07  0ADB F762 2157 2C52 609D\nuid                  Docker Release Tool (releasedocker) &lt;docker@docker.com&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-gpg-verifikation.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-ubuntu-gpg-verifikation.png?w=750&#038;ssl=1\" alt=\"Verification of the GPG key\" title=\"Verification of the GPG key\"\/><\/a><figcaption>Match the output in the terminal with the GPG key from Docker<\/figcaption><\/figure>\n\n\n\n<p><strong>4.&nbsp;<\/strong><strong>Configure the Docker repository:<\/strong>&nbsp;Enter the following command to ensure access to the stable Docker repository:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo add-apt-repository \\\n       \"deb https:\/\/apt.dockerproject.org\/repo\/ \\\n       ubuntu-$(lsb_release -cs) \\\n       main\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-konfiguration-docker-repository.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-konfiguration-docker-repository.png?w=750&#038;ssl=1\" alt=\"Configuration of the Docker repository\" title=\"Configuration of the Docker repository\"\/><\/a><figcaption>Configure access to the stable Docker repository<\/figcaption><\/figure>\n\n\n\n<p>Your system is now completely preconfigured for the installation of the container platform from the Docker repository.&nbsp;tip<\/p>\n\n\n\n<p>As an alternative to the stable repository, you can also use Docker&#8217;s test repository.&nbsp;<em>To<\/em>&nbsp;do this, call up the&nbsp;<em>\/etc\/apt\/sources.list<\/em>&nbsp;file&nbsp;and replace the word&nbsp;<em>main<\/em>&nbsp;with&nbsp;<em>testing<\/em>&nbsp;.&nbsp;We do not recommend using the test repository on production systems.<\/p>\n\n\n\n<p><strong>5.&nbsp;<\/strong><strong>Update package index:<\/strong>&nbsp;Before you continue with the installation of the Docker engine, it is advisable to update the package index of your operating system again.&nbsp;To do this, use the command again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get update<\/code><\/pre>\n\n\n\n<p><strong>6. Docker installation from the repository:<\/strong>&nbsp;You have two options to load the Docker engine from the Docker repository and install it on your Ubuntu system.If you want to load the latest version of the Docker engine, use the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get -y install docker-engine<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-installationsprozess.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-installationsprozess.png?w=750&#038;ssl=1\" alt=\"Docker installation processes: status display in the terminal\" title=\"Docker installation processes: status display in the terminal\"\/><\/a><figcaption>Follow the progress of the installation process via the terminal<\/figcaption><\/figure>\n\n\n\n<p>The container platform is ready for use as soon as the installation process is complete.<\/p>\n\n\n\n<p>The Docker daemon starts automatically.&nbsp;If there was an older version of the container platform on your system before the Docker installation, it was replaced by the newly installed software.<\/p>\n\n\n\n<p>As an alternative to the latest version, any&nbsp;<strong>older version of the Docker engine can be<\/strong>&nbsp;installed.&nbsp;This is useful, for example, when used on productive systems.&nbsp;Here, users sometimes prefer established releases with good experience to newer software versions.<\/p>\n\n\n\n<p>You can get&nbsp;an&nbsp;<strong>overview of the Docker versions available<\/strong>&nbsp;for your system with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ apt-cache madison docker-engine<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-versionsuebersicht.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-versionsuebersicht.png?w=750&#038;ssl=1\" alt=\"Version overview of the Docker engine in the terminal\" title=\"Version overview of the Docker engine in the terminal\"\/><\/a><figcaption>Select the desired Docker release from the list of available software versions<\/figcaption><\/figure>\n\n\n\n<p>To install a special Docker version, simply add the respective&nbsp;<strong>version string to<\/strong>&nbsp;the installation&nbsp;<em>command<\/em>&nbsp;(e.g.&nbsp;<em>1.12.5-0<\/em>&nbsp;) by adding an equal sign to the package name (in this case&nbsp;<em>docker-engine<\/em>&nbsp;) append.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get -y install docker-engine=&lt;VERSION_STRING&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installation_from_the_Ubuntu_repository\"><\/span>Installation from the Ubuntu repository<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Users who do not want to use the Docker repository also have the option of&nbsp;loading&nbsp;the container platform&nbsp;<strong>from the operating system&#8217;s own repository<\/strong>&nbsp;.<\/p>\n\n\n\n<p>Use the following command line command to install a&nbsp;<a href=\"http:\/\/packages.ubuntu.com\/xenial\/docker.io\" target=\"_blank\" rel=\"noreferrer noopener\">Docker package provided by the Ubuntu community<\/a>&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install -y docker.io<\/code><\/pre>\n\n\n\n<p>&nbsp;tip<\/p>\n\n\n\n<p>The installation package of the container platform &#8220;docker.io&#8221; should not be confused with the package &#8220;docker&#8221;, a system tray for KDE3 \/ GNOME2 docklet applications.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Test_run\"><\/span>Test run<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After you have successfully completed the installation process, you should make sure that the container platform is working properly.&nbsp;The development team provides a simple&nbsp;<em>hello-world<\/em>&nbsp;container for this.&nbsp;<strong>Check your Docker installation<\/strong>&nbsp;by entering the following command in the Ubuntu terminal and confirming with [ENTER]:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo docker run hello-world <\/code><\/pre>\n\n\n\n<p>&nbsp;Danger<\/p>\n\n\n\n<p>The Docker daemon is tied to a Unix socket (i.e. to a communication endpoint provided by the operating system) that is assigned to the root user in the standard setting.&nbsp;Other users can therefore only use Docker commands with the addition of&nbsp;<em>sudo<\/em>&nbsp;.&nbsp;This can be changed by creating a Unix group called&nbsp;<em>docker<\/em>&nbsp;and adding the users&nbsp;<em>you want<\/em>&nbsp;.&nbsp;You can find more information on this in the&nbsp;<a href=\"https:\/\/docs.docker.com\/engine\/installation\/linux\/linux-postinstall\/\" target=\"_blank\" rel=\"noreferrer noopener\">documentation for the Docker project<\/a>&nbsp;.<\/p>\n\n\n\n<p>The&nbsp;<em>docker run<\/em>&nbsp;command&nbsp;instructs the Docker daemon&nbsp;to find and start&nbsp;a container named&nbsp;<em>hello-world<\/em>&nbsp;.&nbsp;If your&nbsp;<strong>Docker installation is configured<\/strong>&nbsp;correctly, you should get output that corresponds to the screenshot below.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-hello-world.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-hello-world.png?w=750&#038;ssl=1\" alt=\"Terminal output of the hello-world container\" title=\"Terminal output of the hello-world container\"\/><\/a><figcaption>The greeting &#8220;Hello from Docker&#8221; shows you that your Docker installation is working properly<\/figcaption><\/figure>\n\n\n\n<p>This&nbsp;<strong>terminal output can be interpreted as<\/strong>&nbsp;follows: To&nbsp;execute&nbsp;the command&nbsp;<em>docker run hello-world<\/em>&nbsp;, the Docker daemon first searches the local files of your system for the corresponding container image.&nbsp;Since this is&nbsp;the first time you are running the&nbsp;<em>hello-world<\/em>&nbsp;container&nbsp;, the daemon&#8217;s search will be unsuccessful.&nbsp;You will receive the message &#8220;Unable to find image&#8221;(&#8220;The image could not be found&#8221;).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo docker run hello-world\n&#91;sudo] password for osboxes:\nUnable to find image 'hello-world:latest' locally<\/code><\/pre>\n\n\n\n<p>If Docker cannot find a desired image on the local system, the daemon initiates a&nbsp;<strong>download process<\/strong>&nbsp;(pulling) from the Docker repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>latest: Pulling from library\/hello-world\n78445dd45222: Pull complete\nDigest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7\nStatus: Downloaded newer image for hello-world:latest<\/code><\/pre>\n\n\n\n<p>After a successful download, you get the message: &#8220;Downloaded newer image for&nbsp;<em>hello-world: latest<\/em>&nbsp;&#8221; ( &#8220;New Image for&nbsp;<em>hello-world: latest<\/em>&nbsp;downloaded&#8221;).&nbsp;Then the&nbsp;<strong>container is started<\/strong>&nbsp;.&nbsp;This contains a simple&nbsp;<em>hello-world<\/em>&nbsp;script with the following message from the developers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Hello from Docker!\nThis message shows that your installation appears to be working correctly.\n\nTo generate this message, Docker took the following steps:\n 1. The Docker client contacted the Docker daemon.\n 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\n 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.\n 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.\n\nTo try something more ambitious, you can run an Ubuntu container with:\n $ docker run -it ubuntu bash\n\nShare images, automate workflows, and more with a free Docker ID:\n https:&#47;&#47;cloud.docker.com\/\n\nFor more examples and ideas, visit:\n https:\/\/docs.docker.com\/engine\/userguide\/<\/code><\/pre>\n\n\n\n<p>For you this text means: Your&nbsp;<strong>Docker installation works perfectly<\/strong>&nbsp;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Uninstall_Docker\"><\/span>Uninstall Docker<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Just as easily as installing the Docker engine via the terminal, the container platform can also be&nbsp;<strong>uninstalled<\/strong>&nbsp;in this way&nbsp;.&nbsp;If you want to remove the Docker package from your system, enter the following command in the Ubuntu terminal and confirm with [ENTER]:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> $ sudo apt-get purge docker-engine<\/code><\/pre>\n\n\n\n<p>After the information required for the uninstallation has been read in, you will be asked to confirm the command again.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><a href=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-deinstallation.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ionos.de\/digitalguide\/fileadmin\/DigitalGuide\/Screenshots\/DE-docker-deinstallation.png?w=750&#038;ssl=1\" alt=\"Docker deinstallation via the terminal\" title=\"Docker deinstallation via the terminal\"\/><\/a><figcaption>Uninstall the Docker platform using the apt-get purge command<\/figcaption><\/figure>\n\n\n\n<p>To continue, enter \u201cY\u201d (Yes) and confirm with [ENTER].&nbsp;Select \u201cn\u201d to cancel the uninstallation.<\/p>\n\n\n\n<p>Images and containers are not&nbsp;<strong>automatically removed<\/strong>&nbsp;when the Docker engine is uninstalled&nbsp;.&nbsp;Delete them using this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo rm -rf \/var\/lib\/docker<\/code><\/pre>\n\n\n\n<p>If additional&nbsp;<strong>configuration files were<\/strong>&nbsp;installed, these must be removed manually.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I suggest you get machine to follow along this part. So here&#8217;s a little plug of our own: Cloud VPS, for as little as \u20ac2.95 a month. This article is a part of our complete series of articles on Docker. Click here to access the Free Series. While Docker was<\/p>\n","protected":false},"author":4,"featured_media":2316,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,3],"tags":[],"class_list":["post-2296","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase","category-tutorial-how-to"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/12122013Docker_twitter.png?fit=750%2C375&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-B2","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":3619,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-wordpress-using-docker-compose\/","url_meta":{"origin":2296,"position":0},"title":"How to Install WordPress using Docker Compose","author":"George B.","date":"June 25, 2023","format":false,"excerpt":"We will walk you through the process of installing WordPress using Docker Compose, allowing you to run your WordPress blog efficiently and effortlessly. WordPress is a popular content management system (CMS) that is used by millions of websites worldwide. Docker Compose, on the other hand, is a powerful tool for\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-WordPress-using-Docker-Compose.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-WordPress-using-Docker-Compose.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-WordPress-using-Docker-Compose.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3166,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-docker-engine-on-ubuntu\/","url_meta":{"origin":2296,"position":1},"title":"How to Install Docker Engine on Ubuntu","author":"George B.","date":"April 5, 2023","format":false,"excerpt":"What is Docker Engine? Docker Engine is an open-source client-server technology that builds and runs containers using Docker components and services. It acts as a containerization technology that allows users to interact with the Docker daemon through the Docker Engine API. Docker Engine has a declarative model that automatically adjusts\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-to-Install-Docker-Engine-on-Ubuntu.png?fit=600%2C340&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-to-Install-Docker-Engine-on-Ubuntu.png?fit=600%2C340&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-to-Install-Docker-Engine-on-Ubuntu.png?fit=600%2C340&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3821,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-deploy-zipkin-on-kubernetes\/","url_meta":{"origin":2296,"position":2},"title":"How to Deploy Zipkin on Kubernetes","author":"George B.","date":"September 6, 2023","format":false,"excerpt":"This tutorial will walk you through setting up Zipkin on Kubernetes, assuming that you already have K3s and Helm set up. Microservices have become a key element in the quickly changing world of software development. Distributed tracing systems like Zipkin have become very popular in tandem with this explosion in\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/How-to-Deploy-Zipkin-on-k3s.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3608,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-gitlab-ce-with-docker-on-ubuntu-22-04\/","url_meta":{"origin":2296,"position":3},"title":"How to Install GitLab CE with Docker on Ubuntu 22.04","author":"George B.","date":"June 24, 2023","format":false,"excerpt":"Introduction You can quickly set up your own GitLab instance, manage your repositories, and take advantage of its powerful features by installing GitLab CE with Docker. We'll walk you through the steps of installing GitLab CE with Docker on Ubuntu 22.04, ensuring a smooth installation and configuration. We'll also go\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-GitLab-CE-with-Docker-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-GitLab-CE-with-Docker-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-GitLab-CE-with-Docker-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3954,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-configure-docker-swarm-on-ubuntu-22-04\/","url_meta":{"origin":2296,"position":4},"title":"How to Install and Configure Docker Swarm on Ubuntu 22.04","author":"George B.","date":"September 27, 2023","format":false,"excerpt":"This tutorial will show you how to install and configure Docker Swarm on Ubuntu 22.04 ensuring that you harness its full potential for your containerized applications. For effectively scaling and managing containers, Docker Swarm is still a great option. Many developers and DevOps experts prefer it because of its ease\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/How-to-Install-and-Configure-Docker-Swarm-on-Ubuntu.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2319,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/overview-of-docker-commands-part-1\/","url_meta":{"origin":2296,"position":5},"title":"Overview of Docker Commands Part &#8211; 1","author":"Shreyash Sharma","date":"March 10, 2021","format":false,"excerpt":"I suggest you get machine to follow along this part. So here's a little plug of our own: Cloud VPS, for as little as \u20ac2.95 a month. This article is a part of our complete series of articles on Docker. Click here to access the Free Series. Back to the\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/1_HS1OsFO7ayf_ZUzPus1FCQ.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/1_HS1OsFO7ayf_ZUzPus1FCQ.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/1_HS1OsFO7ayf_ZUzPus1FCQ.jpeg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/1_HS1OsFO7ayf_ZUzPus1FCQ.jpeg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/1_HS1OsFO7ayf_ZUzPus1FCQ.jpeg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/2296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=2296"}],"version-history":[{"count":2,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/2296\/revisions"}],"predecessor-version":[{"id":2312,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/2296\/revisions\/2312"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/2316"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=2296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=2296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=2296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}