Setup Docker on Linux

NOTE – if you are going to run kubernetes then you will need Hyper-V which will fight with VMWare, rather use virtual-box.

Steps to install #docker on Ubuntu

  1. Download VMWare Workstation Player
  2. Download linux ISO
    1. ubuntu-17.10.1-desktop-amd64.iso
    2. ubuntu-17.10.1-server-amd64.iso (GUIs face :D)
  3. Add to VMware-player
    1. (Docker VM) un/pw carl/carl
    2. (PSQL VM) un/pw carl/carl
  4. After the install, allow Putty Session for remote management
    1. How to install and configure SSH on Ubuntu (Server) 14.04 LTS Step-by-Step
1
2
3
4
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server
ip addr show

** Also see other FTP Server Options **

  1. Putty to the server on the IP from the above command, then run the following commands
1
2
3
4
5
#(1) Set up the docker repository
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 add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
1
2
3
#(2) Install Docker CE
sudo apt-get update
sudo apt-get install docker-ce
1
2
#(3) Verify the installation
sudo docker run hello-world

If you have different flavors you may need to add different repository’s as seen below.

Artful

If you are running ‘artful’ you will need to use this repository

1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable"

Ubuntu 18.04

1
2
3
4
5
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test"
sudo apt update
sudo apt install docker-ce