
Docker is an application that allows us to deploy programs that are run as containers. It was written in the popular Go programming language. This tutorial explains how to install Docker CE, and has been tested on:
Older versions of Docker were called docker, docker.io or docker-engine. If these are installed in your machine, uninstall them:
Let’s make sure that we are using a clean system. Update the apt package index and upgrade:
Install packages to allow apt to use a repository over HTTPS:
Add Docker’s official GPG key:
Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 by searching for the last 8 characters of the fingerprint:
OUTPUT
Use the following command to set up the stable repository:
Update the apt package index:
Install the latest version of Docker CE and containerd:
The docker group is created but no users are added to it. You need to use sudo to run Docker commands. Create a non-root user which will be added to the docker group:
Restart the Docker service:
Run the Docker hello-world container to ensure that the installation completed successfully:
OUTPUT
Lastly, enable Docker to run when your system boots:
Congratulations, you have successfully installed Docker. To further explore Docker, visit the official documentation to get started.
0 Comments
Be the first to comment and share your perspective with the community.