devcontainers / devcontainers/features

Wayland socket deleted by features/docker-in-docker

Open
#860 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.5k
Forks
621
Avg merge
2d 11h
Merged PRs (30d)
4

Description

Now the vscode will automatically mount the host's wayland socket to `/tmp/vscode-wayland-<...>.sock`.

But it will be deleted by `features/docker-in-docker`, I don't know why, but here is a minimal reproduce:

Working:
```json
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04"
}
```

```
$ ls -l $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY
lrwxrwxrwx 1 vscode vscode 61 Feb 15 05:02 /tmp/user/1000/vscode-wayland-86517b0c-d95b-425d-a14d-390c5c1f8719.sock -> /tmp/vscode-wayland-86517b0c-d95b-425d-a14d-390c5c1f8719.sock

$ ls -l /tmp/vscode-wayland-86517b0c-d95b-425d-a14d-390c5c1f8719.sock
srwxr-xr-x 1 vscode users 0 Feb 15 04:50 /tmp/vscode-wayland-86517b0c-d95b-425d-a14d-390c5c1f8719.sock
```

Not working:
```json
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
}
}
```

```
$ ls -l $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY
lrwxrwxrwx 1 vscode vscode 61 Feb 15 04:57 /tmp/user/1000/vscode-wayland-af803a78-5a61-4459-bb98-af49440be50f.sock -> /tmp/vscode-wayland-af803a78-5a61-4459-bb98-af49440be50f.sock

$ ls -l /tmp/vscode-wayland-af803a78-5a61-4459-bb98-af49440be50f.sock
ls: cannot access '/tmp/vscode-wayland-af803a78-5a61-4459-bb98-af49440be50f.sock': No such file or directory
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.