You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2e3e5cc
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): put the metadata label where the reference does
TS records devcontainer.metadata as getDevcontainerMetadata's raw
entries: the base image's, the Features' and pick(config.raw,
pickConfigProperties), variables unresolved and runArgs left out. Only
a container from an image with no Features gets the label (JSON of the
entries, "[]" when none); a Dockerfile or Features build, and every
image `build` makes, puts it on the image with the configuration's
entry. Go always labelled the container (repeating the config entry
for Dockerfile builds), left the config entry out of up's image label
and the base image's entries out of build's, wrote substituted values
and runArgs, and wrote "" for no entries.
Since a CLI-created container's metadata now records the configuration,
up, exec, run-user-commands and read-configuration read it as TS
getImageMetadataFromContainer does: the label's entries with their
variables substituted, then only the updateable properties (remoteUser,
userEnvProbe, remoteEnv) for a container with every id label, else the
configuration's entry. The merged configuration keeps the substituted
entries.
build of a compose configuration now goes through the compose port of
buildAndExtendDockerCompose, as TS does: `docker compose build` with
the label build override, also for an image-only service without
Features, so the image carries compose's project and service labels and
the project name follows TS getProjectName. --secrets-file does not
apply there (documented); --label keeps applying through a FROM build.
Every differentialRuntimeKnown entry about labels is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments