For Linux

Before starting the memo, you must install docker.

How to install Docker in Linux(Ubuntu):

1、Update apt package index

sudo apt-get update

2、Install the following packages to enable apt to use the repository over HTTPS

3、Add the GPG key of Docker official

4、Run the following command line to set up the stable repository

5、 Update the apt package index again

6、 Install the latest version of Docker CE

7、 Verify whether the installation is successful

Check the version of docker installed

Start docker and pull hello-world to verify whether the installation is successful

Since sudo access is required to use docker, enter the password here and it will be started successfully.

Next, run the following command line

You can see the container being downloaded from the remote for testing: Pulling from library/hello-world

When you see the message: Hello from Docker! It means the docker is successfully installed.

Last updated

Was this helpful?