Skip to content

FROM statement does not get parsed correctly when using variable substitution #355

Description

ARG cloud
FROM ${cloud:-"mcr.microsoft.com/azure-cli:latest"}python

Getting the following error when parsing the above Dockerfile using devcontainers

Error: Command failed: docker inspect --type image :-
    at createSetupError (D:\Documents\Projects\devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:66588:73)
    at openDockerfileDevContainer (D:\Documents\Projects\devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:66584:11)
    at async resolveWithLocalFolder (D:\Documents\Projects\devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:66964:14)
    at async launch2 (D:\Documents\Projects\devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:67020:18)
    at async doProvision (D:\Documents\Projects\devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:69093:20)
    at async provision (D:\Documents\Projects\devcontainers\cli\dist\spec-node\devContainersSpecCLI.js:69078:18)
{"outcome":"error","message":"Command failed: docker inspect --type image :-","description":"An error occurred setting up the container."}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions