itang / todo.itang.me

4 stars 2 forks source link

了解docker #28

Closed itang closed 10 years ago

itang commented 10 years ago

参考

参考 http://docs.docker.io/en/latest/installation/ubuntulinux/

ubuntu 13.04 13.10

  1. Optional AUFS filesystem support Ubuntu Raring already comes with the 3.8 kernel, so we don’t need to install it, 其他版本你可以这么做:

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

  2. Installation

First add the Docker repository key to your local keychain.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\

/etc/apt/sources.list.d/docker.list"

sudo apt-get update

sudo apt-get install lxc-docker

test

sudo docker run -i -t ubuntu /bin/bash

  1. Giving non-root access

sudo groupadd docker

  1. Upgrade

$ sudo apt-get update

$ sudo apt-get install lxc-docker