0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Docker CEのubuntu:Trusty 14.04(x86_64)へのインストール

Last updated at Posted at 2018-01-23

リポジトリによるインストール
2018/01/23時点
本家documentのコマンドのみの簡略版
作業メモ

手順

古いバージョンのアンインストール

$ sudo apt-get remove docker docker-engine docker.io

ストレージドライバのインストール

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

Dockerインストール

$ sudo apt-get update
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ 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
$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce

CEのバージョン確認

$ apt-cache madison docker-ce
docker-ce | 17.12.0~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

<VERSION>を「上記2列目の文字列」
として以下のコマンドに代入
上記では
17.12.0~ce-0~ubuntu

$ sudo apt-get install docker-ce=<VERSION>

評価

$ sudo docker run hello-world

備考

要件

OS

Trusty 14.04 (LTS)

OSbit

64bit

アーキテクチャ

x86_64

Proxy設定(必要であれば)

apt-get

~/.bashrcなどに以下を記述
export http_proxy=http://username:password@your.proxy.address:yourport
export https_proxy=http://username:password@your.proxy.address:yourport

curl

オプション

--proxy http://username:password@your.proxy.address:yourport

docker run

/etc/default/dockerに以下記述
export http_proxy=http://username:password@your.proxy.address:yourport
export https_proxy=http://username:password@your.proxy.address:yourport

再起動

$ systemctl restart docker

要件確認

OSバージョン

$ cat /etc/lsb-release

OSbit

$ getconf LONG_BIT 

アーキテクチャ

$ arch

引用

関連

Docker ComposeのLinuxへのインストール

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?