Skip to content

[docker-in-docker] Docker buildx not installed in Codespaces #817

Description

@sinedied

In my devcontainer, I'm enabling docker-in-docker using this config:

    "ghcr.io/devcontainers/features/docker-in-docker:2": {
      "moby": "false",
    },

However, when running in GitHub Codespaces, Docker Buildx doesn't seem to be installed as I get this error when trying to run azd deploy on an Azure sample repo using containers:

azd deploy

Deploying services (azd deploy)

  (x) Failed: Deploying service backend

ERROR: failed building service 'backend': failing invoking action 'build', building container: backend at ../..: building image: exit code: 1, stdout: , stderr: ERROR: BuildKit is enabled but the buildx component is missing or broken.
       Install the buildx component to build images with BuildKit:
       https://docs.docker.com/go/buildx/

Here's the installed docker version:

docker --version
Docker version 25.0.1, build 29cf629

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions