-
Notifications
You must be signed in to change notification settings - Fork 948
Open
Labels
needs-triageIssue that require triageIssue that require triage
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
It appears that coder, when creating a devcontainer workspace, does not invoke devcontainer entrypoints.
In my example I was using the docker-in-docker feature. Here's a relevant .devcontainer/devcontainer.json
:
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "GitLab Runner Infrastructure",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
// "dockerComposeFile": "docker-compose.yml",
// "service": "workspace",
"features": {
"ghcr.io/devcontainers/features/terraform:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/skriptfabrik/devcontainer-features/gitlab-cli:1": {}
}
// "workspaceFolder": "/workspace/workspace"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": ".devcontainer/postinstall.sh"
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
In order to use docker while in the workspace via the feature I have to execute dockerd & 2&1 > /dev/null
, typically the devcontainer feature endpoint handles this.
Relevant Log Output
Expected Behavior
No response
Steps to Reproduce
- Ensure template for devcontainers exists or create one (default example)
- Create a workspace using the above template
- run
docker ps
Environment
- Host OS: N/A
- Coder version: 2.23.2
Additional Context
The issue occurs consistently
Metadata
Metadata
Assignees
Labels
needs-triageIssue that require triageIssue that require triage