Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ShauryaAg opened this issue Jan 3, 2023 · 0 comments · Fixed by #356
Closed

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

ShauryaAg opened this issue Jan 3, 2023 · 0 comments · Fixed by #356

Comments

@ShauryaAg
Copy link
Contributor

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."}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant