Reputation: 45
Hi I'm trying to open my container in VS-code.
Info:
My user has the docker group.
Containers are starting correctly with no issues.
I have tried setting sudo chmod 777 /var/run/docker.sock
I have rebooted and re-installed every signle one of the above software (except for the OS)
But when I try to use the Reopen in container vscode (using the remote containers extension) I get the following error: ERROR: .PermissionError: [Errno 13] Permission denied: '/home/<my_user>/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1647440854887.yml'
The Dockerfile and other .yml files do not set docker to use a different user.
The file is generated by the extension itself with -rw-rw-r--
permissions.
Starting the containers outside of vs works flawlessly.
Full command:
docker-compose --project-name <name> -f /home/<my_user>/repos/<my_repo>/.devcontainer/vscode.yml -f /home/<my_user>/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1647441870900.yml up -d
Upvotes: 3
Views: 2759