Docker permissions error on squid install

Installed squid via a docker configuration but can’t access the shell for configuration. I get the following error: “Your user does not have sudo privileges so /usr/bin/docker command will run

on your behalf. This might cause permission issues.

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.51/containers/682c99cd35f7a3713eb396abc60c42a1a42beb378756a7c4060e5630940acfb5/json”: dial unix /var/run/docker.sock: connect: permission denied”

The container shows unknown user and unknown group, the dataset shows root as the user and group. I tried adding root to the docker group but that didn’t change anything.
Do I need to add root as the owner/group for the container?