Docker is a container management service that allows developers to build applications, ship them into containers, and run them anywhere. Hence, you can create your own custom environments that can include a variety of Operating Systems and developing frameworks.
Docker has two versions:
If the project you are working on is small scale, Docker CE will work just fine.
Before installing Docker, you need to make sure that the following things are available on your system:
Before beginning, it’s a good idea to update the local database of your software to make sure that there is access to the latest revisions.
To do so, run the following command on the terminal:
sudo apt-get update
Next, you need to make sure that your system does not have any prior Docker software installation that may be outdated. For that, run:
sudo apt-get remove docker docker-engine docker.io
To install Docker on Ubuntu 18.04, run the following command in the terminal:
sudo apt install docker.io
In order for Docker to be up and running at system startup, run the following commands one by one:
sudo systemctl start docker
sudo systemctl enable docker
To verify whether the installation has been successful, it is a good idea to verify the Docker version number installed. For that, run:
docker --version
The version number of the installed Docker software will be visible on the terminal.
Free Resources