How to set up Docker on Deepin Linux OS 20.9 via the terminal emulator?

I'm a passionate software developer.
Search for a command to run...

I'm a passionate software developer.
Check out the other articles by navigating to blog.alexandrecalaca.com/all-articles
Situation Credential store not initialised Docker Desktop uses 'pass' to store the login credentials that needs to be initialised. Credential store not initialised Docker Desktop is a desktop application that provides an integrated development env...
Components Introduction In order to truly understand props in React, we first need to be clear on what components are. A component is a reusable piece of the user interface that encapsulates structure, styling, and behavior. Instead of repeating the ...

Introduction Context By default, Codespace is using the GITHUB_TOKEN env var (the “Codespaces token”), which can’t create repos. It’s necessary to authenticate gh with a token/account that has the right scopes, or create the repo on the web first. Ob...

Solution Here it is: git commit --allow-empty-message -m "" Explanation To create a Git commit without a message, or with an empty message, you can use the --allow-empty-message flag with the git commit command. git commit --allow-empty-message -m "...

Steps Cleanup phase This phase’s goal is to removes existing containers, volumes, networks and images Stop and remove volumes docker compose down --volumes --remove-orphans The previous command stops and removes containers, networks, and default volu...

Steps Stop the service It’s not mandatory, but before uninstalling, it's a good practice to stop any running Docker services. sudo systemctl stop docker Remove docker packages It’s used to completely and forcefully remove a list of specified packag...

Docker is a platform for developing, shipping, and running applications in containers.
Containers are lightweight, portable, and self-sufficient units that can package an application and its dependencies, including libraries and configuration files, into a single, consistent environment.
This allows developers to create, deploy, and manage applications more efficiently, regardless of the underlying infrastructure.
shall we?

This step is just to make sure you have Deepin Linux installed.
lsb_release -a
hostnamectl
cat /etc/os-release
uname -a
Output

sudo apt-get update
Running sudo apt-get update is an important step before installing or upgrading packages on your system because it ensures that you have the most up-to-date information about available packages.
Without updating the package index, you might not see the latest versions of software or be able to install new packages that have been added to the repositories since the last update.
sudo apt install apt-transport-https ca-certificates gnupg2 curl software-properties-common -y
Output

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

Curl is a command-line tool for transferring data with URLs. In this context, it is used to fetch data from the specified URL.
sudo apt-key fingerprint 0EBFCD88
Output

0EBFCD88 is the key ID or key fingerprint of the GPG key for which you want to retrieve information. In this case, 0EBFCD88 is typically the GPG key associated with the Docker repository.
The sudo apt-key fingerprint command is used to display the fingerprint of a GPG key that has been added to the APT (Advanced Package Tool) keyring on a Debian-based Linux system. The fingerprint is a unique identifier for a GPG key, and it's used to verify the authenticity of the key.
printf 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable\n'| sudo tee /etc/apt/sources.list.d/docker-ce.list
Output

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Output

docker-ce is the package name for Docker CE (Community Edition), which is the version of Docker designed for community use and development environments.
Docker CE Command Line Interface (CLI) is available through the package docker-ce-cli. It provides the command-line tools for working with Docker containers and images.
containerd.io is the package name for containerd, which is an essential component of the Docker runtime that manages containers and provides a basic infrastructure for container execution.
docker --version
which docker
docker --help
Output

sudo systemctl status docker
Output

The command used to manage and control system services on Linux systems that use systemd as their init system is systemctl.
systemd is a system and service manager commonly used in modern Linux distributions.
sudo docker pull hello-world
Output

sudo docker run hello-world
Output


Thank you for reading this article.
If you have any questions, thoughts, suggestions, or corrections, please share them with us.
We appreciate your feedback and look forward to hearing from you.
Feel free to suggest topics for future blog articles. Until next time!