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.

Built for AI assistants too

This site works with AI assistants as well as with people. Every article, plugin and page of documentation is published in a machine-readable form, and an assistant can search our content, check which Moodle version a site is running, contact our team, or request a free temporary Moodle 5.3 platform. The full list is at llms.txt, and the same index as a page at llms.html.