I have added current user to docker group and I'm able to run docker commands like docker run hello-world in terminal opened in vscode with no problem, but vscode doesn't let me attach to a running container, giving "current user does not have permission to run docker. Try adding the user to the 'docker' group" error message.
My system is Ubuntu 18.04, VS code is 1.39.0-insider
If you've not already created a docker group
sudo groupadd docker
Then
sudo usermod -aG docker $USER
Then log out and back in (or reboot) again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With