devcontainers / devcontainers/features
invalid mount config for type "bind": bind source path does not exist: /var/run/docker.sock
- 主要言語
- Shell
- スター
- 1.5k
- フォーク
- 621
- 平均マージ
- 6日 53分
- マージ済み PR(30日)
- 9
説明
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.
コントリビューションガイド
調査の方向性
Start at the docker-outside-of-docker feature entry point and inspect how it resolves DOCKER_HOME and the Docker socket mount. Reproduce the configuration with rootless Docker on Ubuntu 22, using the reported /run/user/1000/docker.sock location. Done means the feature uses the valid rootless socket instead of requiring /var/run/docker.sock.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, shell
- 領域
- infrastructure
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100