* Create index.md Installation and Setup guide for Docker CE on Linux. * Rename guide/english/linux/install-and-Setup-DockerCE-in-linux/index.md to guide/english/linux/install-and-setup-dockerce-in-linux/index.md
1.9 KiB
title
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) <docker@docker.com> 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.0ce-0ubuntu
- Verify Instalation Success.
Run:
$ sudo docker run hello-world
##Post Installation
Usefull guides on using Docker on Linux can be found here:
https://docs.docker.com/install/linux/linux-postinstall/ https://docs.docker.com/config/daemon/