Skip to content

Adapt devcontainer.json for systemd-based devcontainer image#131

Draft
agners wants to merge 3 commits intomainfrom
use-systemd-devcontainer
Draft

Adapt devcontainer.json for systemd-based devcontainer image#131
agners wants to merge 3 commits intomainfrom
use-systemd-devcontainer

Conversation

@agners
Copy link
Copy Markdown
Member

@agners agners commented Apr 1, 2026

Update devcontainer.json settings to work with the new systemd-based devcontainer image (v4).

  • Update tasks to use ha apps instead of ha addons subcommand
  • Add "Installl app" task
  • Update name to mention apps instead of add-ons
  • Use same order of elements as in devcontainer template
  • Bump image tag to 4-supervisor to get the systemd-enabled image
  • Set overrideCommand to false so the image's CMD (/sbin/init) runs as PID 1 instead of being replaced by VS Code's default sleep command
  • Set remoteUser to vscode to preserve the non-root shell experience (required when overrideCommand is false, since VS Code no longer injects its own user-switching wrapper)
  • Add /var/lib/containerd volume mount because modern Docker uses the containerd snapshotter, which stores layer data outside /var/lib/docker
  • Add tmpfs on /tmp to match typical systemd expectations and avoid leftover state across container restarts

Requires home-assistant/devcontainer#162

Update devcontainer.json settings to work with the new systemd-based
devcontainer image (v4).

- Update name to mention apps instead of add-ons
- Use same order of elements as in devcontainer template
- Bump image tag to 4-supervisor to get the systemd-enabled image
- Set overrideCommand to false so the image's CMD (/sbin/init) runs
  as PID 1 instead of being replaced by VS Code's default sleep command
- Set remoteUser to vscode to preserve the non-root shell experience
  (required when overrideCommand is false, since VS Code no longer
  injects its own user-switching wrapper)
- Add /var/lib/containerd volume mount because modern Docker uses the
  containerd snapshotter, which stores layer data outside
  /var/lib/docker
- Add tmpfs on /tmp to match typical systemd expectations and avoid
  leftover state across container restarts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant