のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

ubuntu16.04ni docker install

$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.2.27).
ca-certificates is already the newest version (20170717~16.04.1).
software-properties-common is already the newest version (0.96.20.7).
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 139 kB of archives.
After this operation, 339 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.8 [139 kB]
Fetched 139 kB in 0s (985 kB/s)
Selecting previously unselected package curl.
(Reading database ... 213003 files and directories currently installed.)
Preparing to unpack .../curl_7.47.0-1ubuntu2.8_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.8) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up curl (7.47.0-1ubuntu2.8) ...
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable test edge"
$ sudo apt-get update
Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]    
Ign:3 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease    
Get:4 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]  
Get:5 https://download.docker.com/linux/ubuntu xenial InRelease [65.8 kB]      
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:7 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Get:8 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [4,067 B]
Hit:10 http://security.ubuntu.com/ubuntu xenial-security InRelease             
Hit:11 http://dl.google.com/linux/chrome/deb stable Release
Get:12 https://download.docker.com/linux/ubuntu xenial/test amd64 Packages [15.1 kB]
Get:14 https://download.docker.com/linux/ubuntu xenial/edge amd64 Packages [5,143 B]
Fetched 306 kB in 0s (375 kB/s)        
Reading package lists... Done
$ sudo apt-get install docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  cgroupfs-mount containerd.io docker-ce-cli git git-man liberror-perl pigz
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
Recommended packages:
  abufs-tools
The following NEW packages will be installed:
  cgroupfs-mount containerd.io docker-ce docker-ce-cli git git-man
  liberror-perl pigz
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.1 MB of archives.
After this operation, 260 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 pigz amd64 2.3.1-2 [61.1 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B]
Get:3 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 git-man all 1:2.7.4-0ubuntu1.4 [736 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 git amd64 1:2.7.4-0ubuntu1.4 [3,158 kB]
Get:6 https://download.docker.com/linux/ubuntu xenial/test amd64 containerd.io amd64 1.2.0~beta.0-1 [20.9 MB]
Get:7 https://download.docker.com/linux/ubuntu xenial/test amd64 docker-ce-cli amd64 2:18.09.0~ce~0.4.tp4-0~ubuntu [12.9 MB]
Get:8 https://download.docker.com/linux/ubuntu xenial/test amd64 docker-ce amd64 2:18.09.0~ce~0.4.tp4-0~ubuntu [18.3 MB]
Fetched 56.1 MB in 19s (2,826 kB/s)                                            
Selecting previously unselected package pigz.
(Reading database ... 213010 files and directories currently installed.)
Preparing to unpack .../pigz_2.3.1-2_amd64.deb ...
Unpacking pigz (2.3.1-2) ...
Selecting previously unselected package cgroupfs-mount.
Preparing to unpack .../cgroupfs-mount_1.2_all.deb ...
Unpacking cgroupfs-mount (1.2) ...
Selecting previously unselected package containerd.io.
Preparing to unpack .../containerd.io_1.2.0~beta.0-1_amd64.deb ...
Unpacking containerd.io (1.2.0~beta.0-1) ...
Selecting previously unselected package docker-ce-cli.
Preparing to unpack .../docker-ce-cli_2%3a18.09.0~ce~0.4.tp4-0~ubuntu_amd64.deb ...
Unpacking docker-ce-cli (2:18.09.0~ce~0.4.tp4-0~ubuntu) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../docker-ce_2%3a18.09.0~ce~0.4.tp4-0~ubuntu_amd64.deb ...
Unpacking docker-ce (2:18.09.0~ce~0.4.tp4-0~ubuntu) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.2_all.deb ...
Unpacking liberror-perl (0.17-1.2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.7.4-0ubuntu1.4_all.deb ...
Unpacking git-man (1:2.7.4-0ubuntu1.4) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.7.4-0ubuntu1.4_amd64.deb ...
Unpacking git (1:2.7.4-0ubuntu1.4) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Setting up pigz (2.3.1-2) ...
Setting up cgroupfs-mount (1.2) ...
Setting up containerd.io (1.2.0~beta.0-1) ...
Setting up docker-ce-cli (2:18.09.0~ce~0.4.tp4-0~ubuntu) ...
Setting up docker-ce (2:18.09.0~ce~0.4.tp4-0~ubuntu) ...
Setting up liberror-perl (0.17-1.2) ...
Setting up git-man (1:2.7.4-0ubuntu1.4) ...
Setting up git (1:2.7.4-0ubuntu1.4) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
$ docker --version
Docker version 18.09.0-ce-tp4, build 33764aa

qiita.com