sudo usermod -a -G docker $USER
Here is what the above code is Doing:
1. Install Docker
2. Add the Docker repository to APT sources
3. Update the APT package index
4. Install the latest version of Docker
5. Add the current user to the docker group so you can execute Docker commands without using sudo.