Ubuntu paket von docker installieren: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 5: Zeile 5:
 
==Add Docker’s official GPG key==
 
==Add Docker’s official GPG key==
 
*curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
 
*curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
 
+
==Verify that the key fingerprint is 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88==
 +
*sudo apt-key fingerprint 0EBFCD88
 +
<pre>
 +
pub  4096R/0EBFCD88 2017-02-22
 +
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
 +
uid                  Docker Release (CE deb) <docker@docker.com>
 +
sub  4096R/F273FCD8 2017-02-22
 +
</pre>
  
  

Version vom 9. Mai 2017, 11:07 Uhr

Install using the repository

Install packages to allow apt to use a repository over HTTPS

  • sudo apt-get update
  • sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

Add Docker’s official GPG key

Verify that the key fingerprint is 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88

  • sudo apt-key fingerprint 0EBFCD88
pub   4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid                  Docker Release (CE deb) <docker@docker.com>
sub   4096R/F273FCD8 2017-02-22


  • # test -e /usr/lib/apt/methods/https || { apt-get update ; apt-get install ; apt-transport-https ; }

Then, add the Docker repository key to your local keychain

  • # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

Add the Docker repository to your apt sources list, update and install the lxc-docker package.

You may receive a warning that the package isn't trusted. Answer yes to continue installation.
  • # sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
  • # sudo apt-get update ; sudo apt-get install lxc-docker