sudo apt install docker.io -y
sudo visudo
# add below ad the end
# Docker daemon specification
sungkim ALL=(ALL) NOPASSWD: /usr/bin/dockerd
# Start Docker daemon automatically when logging in if not running.
RUNNING=`ps aux | grep dockerd | grep -v grep`
if [ -z "$RUNNING" ]; then
sudo dockerd > /dev/null 2>&1 &
disown
fi
sudo usermod -aG docker $USER
docker run hello-world