Installing Docker on Ubuntu




root@ip-172-31-23-164:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK

root@ip-172-31-23-164:~# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

root@ip-172-31-23-164:~# apt-get update
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                      
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                                    
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                                  
Hit:5 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease                                                     
Get:6 https://download.docker.com/linux/ubuntu xenial InRelease [29.5 kB]    
Hit:7 https://deb.nodesource.com/node_6.x xenial InRelease    
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [260 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [165 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [583 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [506 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [197 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/main Sources [80.6 kB]         
Get:14 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [36.6 kB]  
Get:15 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [311 kB]       
Get:16 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [131 kB]      
Get:17 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [147 kB] 
Get:18 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [76.2 kB]
Get:19 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [1,966 B]       
Fetched 2,831 kB in 1s (2,714 kB/s)
Reading package lists... Done

root@ip-172-31-23-164:~# apt-cache policy docker-ce
docker-ce:
  Installed: (none)
  Candidate: 17.06.0~ce-0~ubuntu
  Version table:
     17.06.0~ce-0~ubuntu 500
        500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
     17.03.2~ce-0~ubuntu-xenial 500
        500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
     17.03.1~ce-0~ubuntu-xenial 500
        500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
     17.03.0~ce-0~ubuntu-xenial 500
        500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

root@ip-172-31-23-164:~# apt-get install -y docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gyp libjs-inherits libjs-node-uuid libjs-underscore libssl-dev libssl-doc libuv1 libuv1-dev node-abbrev node-ansi
  node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
  node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp
  node-inherits node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
  node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json
  node-request node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which
  python-pkg-resources zlib1g-dev
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  aufs-tools cgroupfs-mount libltdl7
Suggested packages:
  mountall
The following NEW packages will be installed:
  aufs-tools cgroupfs-mount docker-ce libltdl7
0 upgraded, 4 newly installed, 0 to remove and 25 not upgraded.
Need to get 20.6 MB of archives.
After this operation, 96.6 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libltdl7 amd64 2.4.6-0.1 [38.3 kB]
Get:4 https://download.docker.com/linux/ubuntu xenial/stable amd64 docker-ce amd64 17.06.0~ce-0~ubuntu [20.5 MB]
Fetched 20.6 MB in 1s (19.0 MB/s)    
Selecting previously unselected package aufs-tools.
(Reading database ... 94921 files and directories currently installed.)
Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1ubuntu1_amd64.deb ...
Unpacking aufs-tools (1:3.2+20130722-1.1ubuntu1) ...
Selecting previously unselected package cgroupfs-mount.
Preparing to unpack .../cgroupfs-mount_1.2_all.deb ...
Unpacking cgroupfs-mount (1.2) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../libltdl7_2.4.6-0.1_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-0.1) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../docker-ce_17.06.0~ce-0~ubuntu_amd64.deb ...
Unpacking docker-ce (17.06.0~ce-0~ubuntu) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu17) ...
Setting up aufs-tools (1:3.2+20130722-1.1ubuntu1) ...
Setting up cgroupfs-mount (1.2) ...
Setting up libltdl7:amd64 (2.4.6-0.1) ...
Setting up docker-ce (17.06.0~ce-0~ubuntu) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@ip-172-31-23-164:~# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-07-25 00:30:07 UTC; 12s ago
     Docs: https://docs.docker.com
 Main PID: 4958 (dockerd)
   CGroup: /system.slice/docker.service
           ├─4958 /usr/bin/dockerd -H fd://
           └─4963 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m

Jul 25 00:30:06 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:06.864508090Z" level=warning msg="Your kernel does not support swap
Jul 25 00:30:06 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:06.864733249Z" level=warning msg="Your kernel does not support cgro
Jul 25 00:30:06 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:06.864880811Z" level=warning msg="Your kernel does not support cgro
Jul 25 00:30:06 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:06.865311745Z" level=info msg="Loading containers: start."
Jul 25 00:30:07 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:07.007013010Z" level=info msg="Default bridge (docker0) is assigned
Jul 25 00:30:07 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:07.069084500Z" level=info msg="Loading containers: done."
Jul 25 00:30:07 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:07.081451315Z" level=info msg="Daemon has completed initialization"
Jul 25 00:30:07 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:07.081680500Z" level=info msg="Docker daemon" commit=02c1d87 graphd
Jul 25 00:30:07 ip-172-31-23-164 systemd[1]: Started Docker Application Container Engine.
Jul 25 00:30:07 ip-172-31-23-164 dockerd[4958]: time="2017-07-25T00:30:07.091127040Z" level=info msg="API listen on /var/run/docker.sock"
lines 1-19/19 (END)

Installing Ingress Controller - Kubernetes

Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...