Obligatory warning: Only do this if you’re super sure about the security of your local device.
In order to use docker without sudo permissions as a user, without granting all powers to a user, the user can instead be granted full access to docker by joining the docker group on that machine.
# Add the docker group if it doesn't already exist.
$ sudo groupadd docker
# Add user to the docker group
$ sudo usermod -aG docker <user>
# Log group change for user
$ newgrp docker
At this point, docker can be successfully used without requiring sudo permissions.