Follow the official document to install docker on debian/jessie meets an error

Update the apt package index and install packages to allow apt to use repository over HTTPS:

apt-get update
apt-get install \
    ca-certificates \
    curl \
    gnupg \

Add Docker’s official GPG key:

curl -fsSL | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Use the following command to set up the stable repository

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
  $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker Engine

apt-get update
apt-get install docker-ce docker-ce-cli

When execute apt-get upate, it’s occurs an error:

Get:12 jessie/stable Translation-en [391 B]
Ign jessie/stable Translation-en
Fetched 44.8 kB in 3s (14.7 kB/s)                      
Reading package lists... Done
W: GPG error: jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8

Execute the following scripts can easily fix this error:

curl -fsSL | apt-key add -

But you may also encounter other errors during the installation that requires more follow-up. So the better solution is update debian jessie 8 to stretch 9, then to install docker again.


Leave a Reply

Your email address will not be published.

Proudly powered by WordPress