ホーム » techs » How to Install docker

How to Install docker

Installation docker of Ubuntu(14.04) in first time

In this time,I tried to install docker in my PC.

So I just record how to install docker.

This may be useful to do.

(Of course,please refer this with official pages )

 

Reference URL:

Official Top Page: https://www.docker.com/

Installation of Ubuntu: https://docs.docker.com/engine/installation/linux/ubuntulinux/

Installation of Ubuntu japanese ver(Unofficial) :http://docs.docker.jp/engine/installation/linux/ubuntulinux.html

 

Preparation:

-With your terminal

1.Check your kernel ver – docker needs ver 3.10 at least.

uname -r

-From here,you may need “sudo” or root privileges

2.Update package info, check APT works with the https and get CA certificates

sudo apt-get update

sudo apt-get install apt-transport-https ca-certificates

3.Add the new GPG key.

sudo apt-key adv –keyserver hkp://p80.pool.sks-keyservers.net:80recvkeys 58118E89F3A912897C070ADBF76221572C52609D

4.Open or create docker.list in directory /etc/apt/sources.list.d .

eg)vi /etc/apt/sources.list.d/docker.list

If you cannot write or create docker.list, you needs to add sudo

eg)sudo vi  /etc/apt/sources.list.d/docker.list

5.After add an entry for corresponding your Ubuntu operating system to docker.list,save and close it.

eg)deb https://apt.dockerproject.org/repo ubuntu-trusty main

6.Update package info again.

sudo apt-get update

7.Verify that apt is pulling from the right repository.

apt-cache policy docker-engine

    (may show docker-engine info)

8.Install linux-image-extra kernel package

sudo apt-get install linux-image-extra-$(uname -r)

 

Installation

1.Update package info

sudo apt-get update

2.Install docker

sudo apt-get install docker-engine

3.Start docker demon

sudo service docker start

4.Carry sample(hello-world) out

sudo docker run hello-world

If your installation is correct,application show like “Hello from docker! “and some tutorial.

 

*attention

I don’t guarantee to work with your PC.This is just example.

You own your responsibility to install docker.


コメントする