Objective

The objective is to install Docker Engine on Debian 9 Stretch Linux.

Requirements

Privileged access to your Debian 9 Stretch Linux system is required.

Difficulty

EASY

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions

Install Prerequisites

# apt-get install apt-transport-https dirmngr

Add Docker Repository

Add Docker package depository to your /etc/apt/sources.list sources list:
# echo 'deb https://apt.dockerproject.org/repo debian-stretch main' >> /etc/apt/sources.list
Obtain docker's repository signature and updated package index:
# apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys F76221572C52609D
# apt-get update

Install Docker

# apt-get install docker-engine

Appendix

https could not be found

E: The method driver /usr/lib/apt/methods/https could not be found.
Install apt-transport-https package:
# apt-get install apt-transport-https

gpg: failed to start the dirmngr

gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
Install dirmngr package:
# apt-get install dirmngr
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: