Installing Docker in Linux with a single command

Docker provides a simple script to get started installing the Docker CE engine in its GitHub respository, available in https://get.docker.com.

Note: please check before if your Linux distro is supported here. Also ensure you don't have it installed from your distro packages repository.

In this way, Docker it is as simple to install as executing the following command:

curl -sSL https://get.docker.com | sh

As Docker team says:

"The purpose of the install script is for a convenience for quickly installing the latest Docker-CE releases on the supported linux distros"

Warning: It is dangerous to pipe an internet script to sh without reading it before, because of this I recommend the following approach:

curl -fsSL https://get.docker.com -o get-docker.sh
nano get-docker.sh # Verify the content is original and makes sense

sh get-docker.sh # Execute the script

This script will perform all the installation operation and output some relevant info for further information.

🙏🙏🙏

Since you've made it this far, sharing this article on your favorite social media network would be highly appreciated 😀! For feedback, please ping me on Twitter.