Install Docker on Linux

Using Wget
Using Curl

Simply copy and paste this code to install docker on linux/debian/ubuntu and set the correct permission.
Perfect to prepare VM and containers hosts.

Source code

Get the source code from Github

Frequently Asked Questions

Both commands achieve the same result by downloading content and piping it to 'sh'. The choice depends on which utility is already installed on your Minimal VM or container host. curl is often preferred for script use due to its non-interactive nature and better status reporting, but wget is also widely available.

You'll need the ability to run sudo commands, as this process involves creating the 'docker' group and adding the current user to it so that Docker commands can be run without using 'sudo'.

This method is used primarily for rapid provisioning in constrained environments (like temporary VMs or container build processes) where minimizing the number of setup steps is critical.