nestybox / nestybox/sysbox

Issues when running VS Code devcontainer as Sysbox

Open
#601 0 comments 0 reactions 0 assignees View on GitHub

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:

https://user-images.githubusercontent.com/29582865/199137480-c1a61644-54e2-4c18-ae22-19cecd921ca7.mp4

PS:

  • If I use ubuntu-jammy as 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.