Open docker official website
Click on Linux in the middle of the picture above, it will look like this:
Click on Docker Engine in the left column of the picture above, click install, click Ubuntu, it will look like this:
Turn the page down, first execute these commands according to the set up thre repository in Installation methods
Then execute Install Docker Engine these commands
In the end, the docker engine was successfully installed, and the following figure is the test:
I didn’t find a suitable tutorial on the blog before. I found it on station B. If you think my graphic version of the tutorial is troublesome to read, you can watch the video below. I only know the above method after watching the video.
How to install docker in ubuntu