fix error on ubuntu command

unable to resolve host: $(hostname)
fix by:
echo $(hostname -I | cut -d\  -f1) $(hostname) | sudo tee -a /etc/hosts

docker error:
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/images/json: dial unix /var/run/docker.sock: connect: permission denied
fix by:
sudo newgrp docker
sudo gpasswd -a boss docker
output: Adding user boss to group docker