How to install the latest version of docker using deepin apt command

How to install the latest version of docker using deepin apt command

Step 1: Add Ubuntu source

Switch to root

su root

Edit software source files

vim /etc/apt/source.list

Add to

deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

As shown in the figure:

Add the public key of the software source

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

Step 2: Update the cache of software sources

apt update

Step 3: Install Docker

apt install docker-ce

During the execution, I encountered a dependency problem. Containerd.io is missing. If the above dependencies are missing, just download the corresponding dependencies.

Go to download dependencies https://download.docker.com/linux/centos/7/x86_64/stable/Packages/

Download the rpm package whose version is greater than the above requirement, then convert the rpm package into deb package through the alien command, and then install it through dpkg -i xxx.deb

First you need to install alien via apt install alien

Then open the terminal in the download directory and execute alien xxxx.rpm to generate a deb package in the current directory. You can double-click it to install it in the graphical interface.

Then execute the above apt install docker-ce, or you can also download the rpm package of docker-ce from the website

Then generate a deb package for installation

View version:

This is the end of this article about how to install the latest version of docker using deepin apt command. For more information about deepin apt installation of docker, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Simple operation of installing vi command in docker container
  • Detailed explanation of the installation commands and usage of Docker and FastDFS
  • Summary of common Docker commands: installation, mirroring, and basic container operations
  • Detailed explanation of how to install Docker and operate commands under CentOS 7
  • Docker installation and configuration command code examples

<<:  Detailed explanation of Vue login and logout

>>:  Learn Node.js from scratch

Recommend

How to dynamically add ports to Docker without rebuilding the image

Sometimes you may need to modify or add exposed p...

Use of Linux bzip2 command

1. Command Introduction bzip2 is used to compress...

Some suggestions for Linux system optimization (kernel optimization)

Disable swap If the server is running a database ...

How to deploy MySQL and Redis services using Docker

Table of contents How to deploy MySQL service usi...

How to Install Xrdp Server (Remote Desktop) on Ubuntu 20.04

Xrdp is an open source implementation of Microsof...

Example code for converting Mysql query result set into JSON data

Mysql converts query result set into JSON data Pr...

JavaScript anti-shake and throttling explained

Table of contents Stabilization Throttling Summar...

js realizes the magnifying glass function of shopping website

This article shares the specific code of js to re...

JavaScript Array Methods - Systematic Summary and Detailed Explanation

Table of contents Common array methods Adding and...

JavaScript uses setTimeout to achieve countdown effect

In order to enhance the ability to write JavaScri...

Difference and implementation of JavaScript anti-shake and throttling

Table of contents 1. Anti-shake 2. Throttling 3. ...

An in-depth summary of MySQL time setting considerations

Does time really exist? Some people believe that ...

Example of converting timestamp to Date in MySQL

Preface I encountered a situation at work: In the...

Elements of user experience or elements of web design

System and user environment design <br />Th...