title: Install and Setup for Docker CE on Linux
Requirements
Docker CE requires a 64-bit version of one of the below Linux distros:
- Bionic 18.04 or Newer.
- Xenial 16.x.x .
- Ubuntu Trusty 14.0 (LTS).
Note: Docker CE is supported on Ubuntu x86_64, ARM_hf and IBM Z s390x architectures.
Uninstall previous version
Note: Also known as Docker / Docker-Engine.
Run Command in SSL/Bash:$ sudo apt-get remove docker docker-engine docker.io
Install Latest Version
Install Using Repository:
- Update apt Package Index
Run:$ sudo apt-get update
- Install Packages
Run:$ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common
- Add Official GPG Key
Run:$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- Verify Key Fingerprint by searching last 8 characters.
Run:
`$ sudo apt-key fingerprint 0EBFCD88pub 4096R/0EBFCD88 2017-02-22 Key fingerprint = XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX uid Docker Release (CE deb) <[email protected]> sub 4096R/F273FCD8 2017-02-22`
Note: Replace ‘XXXX’ with your Key.
Install Using Docker CE Package
- Update apt Package Index
Run:$ sudo apt-get update
- Install Latest Version
Run:$ sudo apt-get install docker-ce
- Install Specific Version
Run:$ sudo apt-get install docker-ce=<VERSION>
Note: Replace with desired version coed. Eg: docker-ce=17.06.0~ce-0~ubuntu - Verify Instalation Success.
Run:$ sudo docker run hello-world
Post Installation
Usefull guides on using Docker on Linux can be found here: