Permission Denied trying to set API Key

I have a jetson nano loaded with the Deepstream Visual AI and I am trying to get access to the containers. I have an account on NGC, I can “generate an API key” but when I tried to authenticate with the docker using the $oauthtoken and API Key generated, I get the following:

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.40/auth: dial unix /var/run/docker.sock: connect: permission denied

Update:
I followed the steps from Post-installation steps for Linux | Docker Documentation

( saw this from a another reply to a similar issue with docker pull permission denied) but one step was left out… as suggested by the postinstall document, once I did the $ newgrp docker I was all set.