Can you successfully run 'docker' on a Linux terminal?
I can run all the docker commands in terminal, but the problem persisted.
I have been using docker for months and every thing is ok. But I try the vs code remote container, the error message occurs: connect EACCES /var/run/docker.sock

Did you have a try like this ?

https://docs.docker.com/install/linux/linux-postinstall/
Originally posted by @baiyutang in #1193 (comment)