#turn off proxy if needed.
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" >> /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker ##did not need it
apt-cache policy docker-engine ## just to see candidate installation
sudo apt-get upgrade
# linux-image-extra, for 16.04
sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual ##only for ubuntu 16.04
###install
sudo apt-get update
sudo apt-get install docker-engine
sudo service docker start
##add current user to docker usergroup, verify with groups $USER, also reboot the machine
sudo gpasswd -a ${USER} docker
sudo service docker restart
docker won't be working if current user is not assigned to docker usergroup
prayag@prayag:~$ docker info
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
prayag@prayag:~$ sudo service docker status
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2016-09-23 12:36:41 PDT; 1min 11s ago
After adding current user to docker group, followed by reboot, : aufs vs overlay2
docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.12.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 0
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-38-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 7.797 GiB
Name: mukti
ID: MABL:WSBY:2HFJ:7F66:LWGJ:7NG2:NSZA:UBSJ:5MNI:CCYV:NBVW:U3ZL
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
127.0.0.0/8
##mac-os
docker info
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 171
Server Version: 18.03.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.87-linuxkit-aufs
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.952GiB
Name: linuxkit-025000000001
ID: CH6S:VAZV:CQYA:BDGC:NR5Q:JE5C:F4W5:T2Q3:Y4SX:RGGO:M5IM:O5CB
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 21
Goroutines: 39
System Time: 2018-06-07T23:10:48.1764054Z
EventsListeners: 2
HTTP Proxy: docker.for.mac.http.internal:3128
HTTPS Proxy: docker.for.mac.http.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
$ docker volume ls
DRIVER VOLUME NAME
local 387466e56e6e76998f050de5278bd06108efe7583309388964ba88ac3319450c
local 4b4d907097f04ef528627d36b8404f722f9d68efd5e8d4d81b58c1da3b849cef
local 4d1a1bb08ea54392104251fb039d8b33c711c78327050fcebaa5965e9abdb965
local 5996a07b052f4facb6ffa7b44632bcfe57bd3047369b24d173e75913adf9cae2
local 75c978e13868512abe6a9c4f85f9ac6cf83e0d312fc1f48b71849ff8ced0df9d
local 77d20f7136af735d789e5ae6a1a7884688f036e86873fb0dadec592a4e363150
local 794d71d9643785eb9a0657319b8d5ed4cdebb352f191877100e4dd7d4c3be428
local 96fd0c85ce4e0b1bbe7ec4828f66c37ce5341a2165fc3272a7773cd7022f7fba
local b0c85b9b0a14cd2a14f0b2a8943f6a36a1f71740575e3ef90341f436c94dbc1e
local c73bb77589a9402501ac6e92d55cab4412223ad66d7b244b53714c75eeaf5990
local e2feabd261df009e87c243f6b626a4dce90eab750453ec31f9b4db193bb9fe62
local f51c23e93eae8040cb1e58a4cb76dc4b5339f8cabe917781d9c639f00fd131eb
docker volume inspect 387466e56e6e76998f050de5278bd06108efe7583309388964ba88ac3319450c
[
{
"CreatedAt": "2018-04-22T20:00:19Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/387466e56e6e76998f050de5278bd06108efe7583309388964ba88ac3319450c/_data",
"Name": "387466e56e6e76998f050de5278bd06108efe7583309388964ba88ac3319450c",
"Options": null,
"Scope": "local"
}
]https://docs.docker.com/engine/installation/linux/ubuntulinux/
Determining proxy server/port