How to install Docker on Amazon Linux

This tutorial explains how to install Docker on Amazon Linux 2

Install Docker



sudo amazon-linux-extras install docker


Start Docker service



sudo service docker start


Verify Docker installation



docker --version


Ouput



Docker version 19.03.13-ce, build 4484c46


If you are seeing output as shown above, than Docker is successfully installed.

Now Docker is up and running with Sudo permissions, lets add user to docker, so that docker command commands can be executed without Sudo access

Add user to docker group



sudo usermod -a -G docker ""username""



Follow US on Twitter: