devcontainers / devcontainers/features

invalid mount config for type "bind": bind source path does not exist: /var/run/docker.sock

Aperta
#952 4 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
1.5k
Fork
621
Merge medio
6g 53m
PR unite (30g)
9

Descrizione

I am running rootless docker. And trying to spawn a devcontainer with docker-outside-docker feature. When I try to run the container, I get an error
```
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/run/docker.sock.
```
This path doesn't exist on my system as it is rootless I think and the actual path will be unix:///run/user/1000/docker.sock.

``` json
{
"name": "MyApi",
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
},
"forwardPorts": [50111, 50111],
"portsAttributes": {
"50111": {
"protocol": "https"
}
}
}
```

Host: Ubuntu 22
Docker: rootless as described [here](https://docs.docker.com/engine/security/rootless/)

I believe it is not respecting the DOCKER_HOME env variable.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.