Docker is a tool for working with containers. The main advantage of Docker is the ability to run applications with isolated resources.
To get started, you need to perform a number of actions from the step-by-step instructions:
To deploy Docker storage, you need to do some preliminary server configuration (including creating a user with non-route permissions and checking firewall settings.
Also, an account on Docker Hub is required to deploy Docker Storage. Without it, the user will not be able to create custom images and upload them to Docker Hub.
The Docker installation package, which is in the Ubuntu repo, may contain the latest version. If it is relevant to work specifically with a fresh update, enter the command:
$ sudo apt update
Before installing Docker, it is necessary to install packages that are designed to work with HTTPS.
The first thing to do is to make sure that the download is from the Docker repository and not the Ubuntu repository (which is the default). The command used for this is:
$ apt-cache policy docker-ce
When the installation completes, an informational message will appear on the screen with the version number and other features. From its contents, it is clear that docker-ce
is a candidate for installation, but has not yet been installed.
To install it, type the command into the command line:
$ sudo apt install docker-ce
After that, Docker will be installed. To check if the daemon process is running (this should happen automatically), use the command-check:
$ sudo systemctl status docker
Pay attention to the status "Active
": it should contain information that the service is active. Additionally, you will see other features of docker-ce
(memory, tasks, link to official documentation and others).
When you have installed Docker, you can work with the settings. For example, set startup without sudo
and others. Be sure to study the documentation and the list of subcommands that the installed (current) version of Docker works with.