Docker Post-installation steps for Linux

The following commands are required for Docker post-installation to allow the execution of Docker commands without using sudo:
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
sudo reboot
After the host reboots, you should be able to run commands such as docker ps
or docker run
without sudo.