cli
cli copied to clipboard
A reference implementation for the specification that can create and configure a dev container from a devcontainer.json.
Hey, I think the behavior of Dev Container CLI for digest pinning is inconsistent between the image field and feature keys. For images, it accepts the following definition without a...
#599 Could additionally consider using something like https://www.npmjs.com/package/istextorbinary to detect binaries.
We've found it difficult to on-board users accustomed to the docker CLI to `@devcontainers/cli`. It would be awesome if `@devcontainers/cli` were a docker CLI front-end plugin, similar to [`docker compose`](https://github.com/docker/compose),...
If specifying mounts in `devcontainer.json` and trying to mount the same volume in different locations, you get a deserialization error. ``` [2024-05-08T20:39:45.846Z] parsing /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.containerFeatures-1715200785780-516d96c0-3c67-479f-b191-c3c3d323c3c3.yml: yaml: unmarshal errors: line 28: mapping...
I have a private feature which creates and adds a user to the underlying container. The feature passes all of its tests; it definitely correctly creates a user. I've published...
[This block of code](https://github.com/devcontainers/cli/blob/c1c8b08263c6dca7cd79c97a2d0bc581fcef4f6c/src/spec-node/utils.ts#L309-L313) assumes that any image name with only one slash in it cannot possibly be a fully qualified image name, and therefore prepends `docker.io/` to the name....
Because the container configuration is cached in the container labels after creation, any changes to the local config file are ignored for future operations on the container. In the case...
I need to connect to a private Azure Devops artifact feed when my devcontainer starts. The command looks like this CARGO_REGISTRIES_MYPROJECT_PUBLICPACKAGES_TOKEN="$(az account get-access-token --query \"join(' ', ['Bearer', accessToken])\" --output tsv)"...
# Description Currently, even with `overrideCommand` set to `false`, the devcontainer still [forces the entrypoint ](https://github.com/devcontainers/cli/blob/c1c8b08263c6dca7cd79c97a2d0bc581fcef4f6c/src/spec-node/singleContainer.ts#L412)as `/bin/sh`, which prevents the other init system like`systemd` to start as PID 1. Because...
Allows to use a default value like this: ``` "WEBSITE_URL": "${localEnv:WEBSITE_URL:https://example.com" ```