docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Read more:
Add the connected user "${USER}" to the docker group. Change the user name to match your preferred user:
sudo gpasswd -a ${USER} docker
Restart the Docker daemon:
sudo service docker restart
Read more: