免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2015年3月20日 星期五

install docker on ubuntu

//=== https://docs.docker.com/installation/ubuntulinux/


*** install docker package maintained by docker.com


* Ubuntu Trusty 14.04 (LTS) (64-bit)

0. make sure apt-transport-https is installed

$ [ -e /usr/lib/apt/methods/https ] || {
apt-get update
apt-get install apt-transport-https
}


1. download public key for docker.com repository and append to local key chain(key ring?)
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

[ http://manpages.ubuntu.com/manpages/trusty/man8/apt-key.8.html
apt-key :
to manage the list of keys used by apt to authenticate packages.

apt-key adv : pass advanced options to gpg.
apt-key adv --recv-key keyid :
to download the public key corresponding to keyid and add to local keyring

$ man gpg
--recv-keys key IDs
Import the keys with the given key IDs from a keyserver.
Option --keyserver must be used to give the name of this keyserver.

]


2. add the docker.com repo to your apt sources list, update and install the lxc-docker
$ 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


3. verify docker installation
$ docker -v
$ ps aux|grep docker
$ sudo docker run -it ubuntu /bin/bash




//=== https://docs.docker.com/installation/ubuntulinux/

* Ubuntu Precise 12.04 (LTS) (64-bit)

0. upgrade Linux kernel to 3.13+
# install the backported kernel
$ sudo apt-get update
$ sudo apt-get install linux-image-generic-lts-trusty linux-headers-generic-lts-trusty

# install the backported kernel and xorg if using Unity/Xorg
$ sudo apt-get install --install-recommends linux-generic-lts-trusty xserver-xorg-lts-trusty libgl1-mesa-glx-lts-trusty

# reboot
$ sudo reboot

Then
repeat step 1 -- 3 for Ubuntu Trusty 14.04 (LTS) (64-bit)



* Ubuntu Raring 13.04 and Saucy 13.10 (64 bit)

To make sure AUFS is installed, run the following commands:

$ sudo apt-get update
$ sudo apt-get install linux-image-extra-`uname -r`


Then
repeat step 1 -- 3 for Ubuntu Trusty 14.04 (LTS) (64-bit)


* Upgrade docker.com-maintained docker package -- lxc-docker

$ sudo apt-get update
$ sudo apt-get install lxc-docker




*** install docker.io package maintained by ubuntu.com

* Ubuntu Trusty 14.04 (LTS) (64-bit)
"""...
Ubuntu Trusty comes with a 3.13.0 Linux kernel, and a 'docker.io' package which installs 'Docker 1.0.1'

...
Ubuntu (and Debian) contain a much older KDE3/GNOME2 package called docker, so the Ubuntu-maintained package and executable are named docker.io.


... $ sudo apt-get install docker.io [will get 'Docker 1.0.1' ]


..."""

沒有留言:

張貼留言