You’re probably encountering an issue where VS Code asked you to install the Docker integration, and once you install it, you’re getting the following error:
permission denied while trying to connect to the docker daemon socket
The simple fix is to add your user you’re trying to remote view the containers with, to a new group called docker. To do this, you can run the following:
sudo groupadd docker
After you’ve created the docker user, you need to add YOUR user to that group.
sudo usermod -aG docker $USER
And that’s it! You should now be able to view your containers, logs, etc. from within VS Code.