Issues when running VS Code devcontainer as Sysbox
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.9k
- Forks
- 230
- Avg merge
- 7h 48m
- Merged PRs (30d)
- 3
Description
This issue only happens if I use debian:bullseye as base, and I copied and pasted all the contents from https://github.com/nestybox/dockerfiles/blob/master/ubuntu-focal-systemd/Dockerfile in order to install systemd in the debian:bullseye image.
I created a repository with the contents I used, it can be reproduced that way:
Funnily enough, if I take the exact same image which VS Code uses and use docker run on it, it works fine.
The command for testing is:
sudo sysctl kernel.dmesg_restrict=0
Although it requires the following patch on sysbox-fs first:
Demo:
PS:
- If I use
ubuntu-jammyas base, it works fine always - It's totally understandable if your prefer not to spent time investigating this issue. I spent several hours on it, and could not get further. I'm opening this issue so I can at least document this "limitation", or simply acknowledge it for future reference. Thus, feel free to also close it if you prefer to keep the backlog clean.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproducer in felipecrs/sysbox-devcontainer and compare the VS Code devcontainer path with the working docker run path, using debian:bullseye and the systemd Dockerfile contents described here. Apply the prerequisite sysbox-fs PR 77 when testing the sudo sysctl kernel.dmesg_restrict=0 command; done means identifying the cause, fixing the behavior, or documenting the Debian limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, docker, shell, vscode
- Domain
- devops, infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100