-
Notifications
You must be signed in to change notification settings - Fork 521
Troubleshooting
I get "unauthorized: authentication required" in the terminal when executing some commands, such as "Docker: push".
Make sure you are signed in to the Docker Hub or Azure container registry from the docker CLI via docker login
(using your username, not your e-mail address).
If you are using an Azure container registry, you will need to get the username and password from Azure by right-clicking on the Azure container registry in the extension and selecting "Browse in the Azure Portal", then selecting the "Access Keys" tab.
Finally, execute docker login
, for example:
docker login exampleazurecontainerregistry.azurecr.io
and respond with the username and password specified by Azure.
Since VS Code runs as a non-root user, you will need to follow the steps in “Manage Docker as a non-root user” from Post-installation steps for Linux for the extension to be able to access docker.
Maintaining good quality documentation is a priority for the Docker extension team. If you find missing or inaccurate content, or if you'd like to extend the wiki with a topic or tutorial, please let us know by opening an issue.