Skip to content

Dev Container rebuild ignores custom user and extensions on debian:trixie base #1465

@philly706869

Description

@philly706869

Problem

When using a debian:trixie base image in a Dev Container, after running
remote-containers.rebuildContainer, the configured non-root user and all extensions defined in
devcontainer.json and features are not applied. Instead, the container falls back to the root user
with no extensions installed.

Environment

  • VS Code version: 1.103.2
  • VS Code Dev Container version: 0.422.1
  • Host OS: Windows 24H2 (build 26100.5074)

Reproduction Steps

  1. Clone the repo: repo link
  2. Open in VS Code and run command remote-containers.reopenInContainer.
  3. Run command remote-containers.rebuildContainer.
  4. Observe the applied user and extensions.

Expected Result

  • The container uses the vscode user.
  • All extensions defined in src/.devcontainer/devcontainer.json and features are applied.

Actual Result

  • The container uses the root user.
  • All extensions defined in src/.devcontainer/devcontainer.json and features are not applied.

Additional Context

  • After pulling the image for the first time and opening it in the container, it works correctly.
  • The issue occurs after running the remote-containers.rebuildContainer command.
  • The issue persists even after exiting vscode and restarting it, or disconnecting and reconnecting to the container.
  • The issue does not occur on debian:bookworm based images.
  • Reproduction image build log: log link

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions