Installing Docker on Deepin 15.9

Leonardo Teixeira
2 min readFeb 16, 2019

--

There are several tutorials on the internet that show you how to install Docker on Deepin. However I had difficulty installing in the latest version 15.9, as there is an important detail that I did not find easily and I come to share here. I hope it helps!

One of these tutorials said to add the official repository:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian wheezy stable"

So far so good, but when running the “sudo apt-get update” I had the following problem:

The repository ‘https://download.docker.com/linux/debian unstable Release’ does not have a Release file.

Even if you follow the Docker installation guide itself you will have this little problem at hand.

How to solve it then?

The first thing to do, is to remove the wrong repository. You need to remove the previous repository added in the “sources.list” file:

sudo nano /etc/apt/sources.list

The tutorials do not say you should be aware of the Deepin and Debian versions respectively.

Deepin version 15.9 is based on Debian version 9, nicknamed “Stretch”.

In that case, I was adding a repository of another version that most likely would not work in Deepin 15.9.

To correct this, simply add the repository with its version:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"

Tutorial complete:

  1. If you have already installed an earlier version, you can remove it:
sudo apt-get remove docker-engine

2. Install key managers and related tools:

sudo apt-get install apt-transport-https ca-certificates curl python-software-properties software-properties-common

3. Download and install the key:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

4. Make sure the key is installed successfully:

sudo apt-key fingerprint 0EBFCD88

5. If all went well, the following message should be displayed:

pub 4096R / 0EBFCD88 2017-02-22 Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88uid Docker Release (CE deb) <docker@docker.com>sub 4096R / F273FCD8 2017-02-22

6. Add the official Docker Repository (with its version):

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"

7. Update the packages:

sudo apt-get update

8. Install Docker-ce:

sudo apt-get install docker-ce

9. Check the newly installed version:

docker version

10. And finally, just add the Docker user:

sudo groupadd docker 
sudo usermod -aG docker $ USER

11. If everything is installed correctly, you can run the “hello-world” container to test:

sudo docker run hello-world

Anyway, I hope I have helped some colleague who has faced the same problem as me. Leave your comment or suggestions.

Official informations:

Tutorial based on:

https://medium.com/@wendreof/installing-docker-no-linux-deepin-a48a3f9d9b8c

--

--