Docker Tips

How to remove untagged images?

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

Read more:

How to use Docker without sudo?

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:

How to run DockerHub on start?