Docker Installation

# apt-get update
# apt-get install apt-transport-https ca-certificates curl software-properties-common
# curl -fsSL | sudo apt-key add –
Verify that you now have the key with the fingerprint9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
# 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) <>
sub   4096R/F273FCD8 2017-02-22
# add-apt-repository “deb [arch=amd64] $(lsb_release -cs) edge”
# apt-get update
# apt-get install docker-ce

From the security standpoint better using sudo than docker group

-add your current user to docker group
$ sudo usermod -aG docker $USER
-test docker can run
# docker info
# docker version
# docker ps

# docker run hello-world

I choose Edge because it has Kubernetes
-click 2x Docker.img

drag Docker into Applications

-open Terminal
$ docker ps

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 18.03.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
 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: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
  Profile: default
Kernel Version: 4.9.87-linuxkit-aufs
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952GiB
Name: linuxkit-025000000001
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 21
 Goroutines: 39
 System Time: 2018-04-15T09:00:17.847990624Z
 EventsListeners: 2
HTTP Proxy: docker.for.mac.http.internal:3128
HTTPS Proxy: docker.for.mac.http.internal:3129
Experimental: true
Insecure Registries:

Live Restore Enabled: false

$ docker version
 Version:     18.04.0-ce
 API version:        1.37
 Go version:         go1.9.4
 Git commit:        3d479c0
 Built:Tue Apr 10 18:13:16 2018
 OS/Arch:   darwin/amd64
 Experimental:     false
 Orchestrator:     swarm
  Version:    18.03.0-ce
  API version:       1.37 (minimum version 1.12)
  Go version:        go1.9.4
  Git commit:       0520e24
  Built:         Wed Mar 21 23:14:32 2018
  OS/Arch:  linux/amd64

  Experimental:    true


-VMware Workstation vm won’t run if Hyper-V installed on Windows

click 2x Docker for Windows Installer.exe
-on Configuration prompt
tick Add shortcut to desktop

click OK

click Close and Logout
Login back
-on “Hyper-V and Containers features are not enabled. Do you want to enable them for Docker to be able to work properly? Your computer will restart automatically. Note: VirtualBox will no longer work.” prompt
click OK
-run Powershell ISE
> docker version
> docker info
> docker ps

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s