How to install docker on ubuntu?

How to install docker on ubuntu?

Mar 29, 2019 ubuntu code snippets docker

<h3>Docker installing on Ubuntu</h3><h4>1) Update package manager and add docker repository</h4><pre><span><code class="bash hljs">sudo apt-get update</code></span></pre><pre><span>sudo apt-get install apt-transport-https ca-certificates curl software-properties-common<span id="line20"><br></span></span></pre><pre><span><span id="line20"></span>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<span id="line21"><br></span></span></pre><pre><span><span id="line21"></span>sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"</span></pre><h4>2) Update again and install docker-ce</h4><pre><code class="bash hljs">sudo apt-get update sudo apt-get install docker-ce</code></pre>

Read in other languages:

UZ ZH-HANS DA DE ES FR IT HU NL NB PL PT RO FI SV TR CS EL BG RU