title: How to install docker-ce? for version 18.06.1~ce~3-0~debian
body: <p>In the <a href="https://docs.docker.com/install/linux/docker-ce/debian/" rel="nofollow noreferrer">documentation</a>, it mentions to run command:</p>
  
  <pre><code>sudo apt-get install docker-ce=&lt;VERSION_STRING&gt; docker-ce-cli=&lt;VERSION_STRING&gt; containerd.io
  </code></pre>
  
  <hr>
  
  <p>But I think this command is for latest version of packages in this list:</p>
  
  <pre><code>$ apt-cache madison docker-ce
   docker-ce | 5:19.03.5~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:19.03.4~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:19.03.3~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:19.03.2~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:19.03.1~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:19.03.0~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.9~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.8~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.7~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.6~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.5~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.4~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.3~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.2~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.1~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 5:18.09.0~3-0~debian-stretch | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 18.06.3~ce~3-0~debian | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 18.06.2~ce~3-0~debian | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 18.06.1~ce~3-0~debian | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 18.06.0~ce~3-0~debian | https://download.docker.com/linux/debian stretch/stable amd64 Packages
   docker-ce | 18.03.1~ce-0~debian | https://download.docker.com/linux/debian stretch/stable amd64 Packages
  </code></pre>
  
  <hr>
  
  <p>I would like to install package <code>18.06.1~ce~3-0~debian</code> for <code>18.06.1</code> version of docker. Using above syntx:</p>
  
  <pre><code>  $ sudo apt-get install docker-ce=18.06.1~ce~3-0~debian docker-ce-cli=18.06.1~ce~3-0~debian containerd.io
  </code></pre>
  
  <p>gives below error:</p>
  
  <pre><code>   E: Version '18.06.1~ce~3-0~debian' for 'docker-ce-cli' was not found
  </code></pre>
  
  <hr>
  
  <p>What is the right syntax to install docker-ce?</p>