1. Update your existing list of packages: 2. Install a few prerequisite packages which let apt use packages over HTTPS: 3. Add the GPG key for the official Docker repository to your system: 4. Add the Docker repository to APT sources: 5. Make sure you are about to install from the Docker repo instead of the default…