aboutsummaryrefslogblamecommitdiff
path: root/src/docker-from-docker/devcontainer-feature.json
blob: c531d5110a4d685008adbfea0c4ba92459c440d8 (plain) (tree)
1
2
3
4
5
6
7

                               

                                                                                                                                                                                                       


                             




                          







                                                                                                              
                                        
                             



                     












                                                                                 


                                                  






                            
{
    "id": "docker-from-docker",
    "name": "Docker (Docker-from-Docker)",
    "descripton": "Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.",
    "options": {
        "version": {
            "type": "string",
            "proposals": [
                "latest",
                "none",
                "20.10"
            ],
            "default": "latest",
            "description": "Select or enter a Docker/Moby CLI version. (Availability can vary by OS version.)"
        },
        "moby": {
            "type": "boolean",
            "default": true,
            "description": "Install OSS Moby build instead of Docker CE"
        },
        "docker_dash_compose_version": {
            "type": "string",
            "enum": [
                "v1",
                "v2"
            ],
            "default": "v1",
            "description": "Compose version to use for docker-compose (v1 or v2)"
        }
    },
    "entrypoint": "/usr/local/share/docker-init.sh",
    "containerEnv": {
        "DOCKER_BUILDKIT": "1"
    },
    "extensions": [
        "ms-azuretools.vscode-docker"
    ],
    "mounts": [
        {
            "source": "/var/run/docker.sock",
            "target": "/var/run/docker-host.sock",
            "type": "bind"
        }
    ],
    "install": {
        "app": "",
        "file": "install.sh"
    }
}