Installing Docker on OpenKylin may experience slightly different package management issues than Ubuntu. Here is a more detailed process to ensure that you can correctly add the Docker repository and install Docker:
1. Ensure the system is updated
First, update the system package index:
sudo apt-get update
2. Install the necessary dependency packages
Install APT to transport HTTPS and CA certificate packages:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
3. Add Docker GPG key
Add Docker's official GPG key:
curl -fsSL /linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/
4. Set up the Docker APT repository
Set up the Docker repository:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/] /linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt// > /dev/null
5. Update package index
Update the package index again:
sudo apt-get update
6. Check Docker repository settings
OpenKylin is used, and it needs to be specified manuallyfocal
Version, make sure the file content is correct:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/] /linux/ubuntu focal stable" | sudo tee /etc/apt// > /dev/null
7. Install Docker
Install Docker:
sudo apt-get install docker-ce docker-ce-cli
This is all about installing Docker on OpenKylin. For more information about installing Docker for OpenKylin, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!