0% found this document useful (0 votes)
171 views

Docker Installation On Ubuntu OS

The document provides steps to install Docker on an Ubuntu system. It involves installing curl, adding the Docker apt repository key, updating apt, checking and installing the Docker CE package, and checking the Docker service status. Key steps include using apt to install curl, adding the Docker apt key, updating apt, checking and installing Docker CE 17.12.1, and verifying the Docker service is running.

Uploaded by

Jivan Munde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views

Docker Installation On Ubuntu OS

The document provides steps to install Docker on an Ubuntu system. It involves installing curl, adding the Docker apt repository key, updating apt, checking and installing the Docker CE package, and checking the Docker service status. Key steps include using apt to install curl, adding the Docker apt key, updating apt, checking and installing Docker CE 17.12.1, and verifying the Docker service is running.

Uploaded by

Jivan Munde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

Docker Installation on Ubuntu System

Steps to be perform on terminal:

1) apt install curl

OP:

root@user:~# apt install curl

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

curl

0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.

Need to get 0 B/138 kB of archives.

After this operation, 339 kB of additional disk space will be used.

Selecting previously unselected package curl.

(Reading database ... 200475 files and directories currently installed.)

Preparing to unpack .../curl_7.47.0-1ubuntu2.6_amd64.deb ...

Unpacking curl (7.47.0-1ubuntu2.6) ...

Processing triggers for man-db (2.7.5-1) ...

Setting up curl (7.47.0-1ubuntu2.6) ...

***********************
2) rootuser:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -

OP:

OK

***********************

3) add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs)


stable"

OP:

Nothing

***********************

4) apt-get update

OP:

apt-get update

Ign:1 cdrom://Ubuntu 16.04.4 LTS _Xenial Xerus_ - Release amd64 (20180228) xenial InRelease

Hit:2 cdrom://Ubuntu 16.04.4 LTS _Xenial Xerus_ - Release amd64 (20180228) xenial Release

Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease

Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]

Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]

Get:7 https://download.docker.com/linux/ubuntu xenial InRelease [65.8 kB]

Get:8 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [595 kB]

Get:9 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [550 kB]

Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [738 kB]


Get:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [685 kB]

Get:12 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [3,329 B]

Fetched 2,842 kB in 0s (3,252 kB/s)

Reading package lists... Done

5) rootuser:~# apt-cache policy docker-ce

OP: docker-ce:

Installed: (none)

Candidate: 17.12.1~ce-0~ubuntu

Version table:

17.12.1~ce-0~ubuntu 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.12.0~ce-0~ubuntu 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.09.1~ce-0~ubuntu 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.09.0~ce-0~ubuntu 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.06.2~ce-0~ubuntu 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.06.1~ce-0~ubuntu 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.06.0~ce-0~ubuntu 500
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.03.2~ce-0~ubuntu-xenial 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.03.1~ce-0~ubuntu-xenial 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

17.03.0~ce-0~ubuntu-xenial 500

500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

6) apt-get install -y docker-ce

OP:

Reading package lists... Done

Building dependency tree

Reading state information... Done

7) systemctl status docker

OP: docker.service - Docker Application Container Engine

8) To install the required version run following commands:

sudo apt-get remove docker docker-engine docker-ce docker.io


sudo apt-get install docker-ce=17.12.1~ce-0~ubuntu

You might also like