Ubuntu paket von docker installieren: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
*test -e /usr/lib/apt/methods/https  || { apt-get update ; apt-get install ; apt-transport-https ; }
+
* # 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=
 
=Then, add the Docker repository key to your local keychain=
*sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
+
* # 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.=
 
=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.
 
;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 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
+
* # sudo apt-get update ; sudo apt-get install lxc-docker

Version vom 4. März 2015, 17:51 Uhr

  • # 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