Skip to content

How to Setup GitHub Codespace(a Docker instance) to Use another Docker within it #137140

Answered by c0d33ngr
c0d33ngr asked this question in Codespaces
Discussion options

You must be logged in to vote

I found out that there's a feature for docker-in-docker to include to my devcontainer.json file to make it works

Sample below

{
    "name": "Docker in Docker",
    "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
    "features": {
        "ghcr.io/devcontainers/features/docker-in-docker:2": {}
    }
}

With this I can run docker commands in my codespace

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by c0d33ngr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Question
1 participant