Skip to content

Troubleshooting

Eric Jizba edited this page Jun 21, 2019 · 16 revisions

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. Getting Azure username and password

Finally, execute docker login, for example:

docker login exampleazurecontainerregistry.azurecr.io

and respond with the username and password specified by Azure.

I'm on Linux and get the error "Unable to connect to Docker, is the Docker daemon running?"

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.

Clone this wiki locally