You may need to add your user to the docker group with:
sudo usermod -aG docker $USER
If you get an error stating that the docker group doesn't exist, you can create it with:
sudo groupadd docker