Docker login not letting me in

The “docker login” wont let me get passed it.
I have tried a couple of ways. It either denies me or just hangs up.

Since I do not have permission it wont let the jupyter notebook run the training

joev@joev-Predator-G6-720:~$ workon tlt

(tlt) joev@joev-Predator-G6-720:~$ docker login
Username: $oauthtoken
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/auth: dial unix /var/run/docker.sock: connect: permission denied

(tlt) joev@joev-Predator-G6-720:~$ sudo docker login -u “$oauthtoken” --password-stdin
[sudo] password for joev:

(tlt) joev@joev-Predator-G6-720:~$ docker login -u “$oauthtoken” --password-stdin

OK got passed it.
Had to use a genertated key as the password instead of this:

$docker login -u “$oauthtoken” --password-stdin