Archived as this functionality is now implemented in the the offical Docker install script
This script will install the latest version from Docker using the offical Docker install script + the latest version from Docker compose V2. If Docker already exist, you have the option to reinstall or remove Docker.
bash <(curl -sS https://raw.githubusercontent.com/MarcoBaeuml/docker-setup/main/install.sh)