On Docker's documentation pages, all example commands are shown without sudo
, like this one:
docker ps
On Ubuntu, the binary is called docker.io
. It also does not work without sudo:
sudo docker.io ps
How can I configure Docker so that I don't need to prefix every Docker command with sudo?