Skip to content

Building a Dev Container: unable to prepare context: unable to evaluate symlinks in Dockerfile path #7303

Closed
devcontainers/cli
#250

Description

This happens with Dev Containers extension 0.255.2 that was just released, reverting to 0.251.0 fixes the problem.

  • VSCode Version: 1.71.2
  • Local OS Version: 20.04
  • Remote OS Version: 20.04
  • Remote Extension/Connection Type: Containers
  • Logs:
[2022-10-06T21:41:08.823Z] Stop (1135 ms): Run: docker build -t dev_container_feature_content_temp -f /tmp/devcontainercli-jpollak/container-features/0.19.0-1665092467661/Dockerfile.buildContent /tmp/devcontainercli-jpollak/container-features/0.19.0-1665092467661
[2022-10-06T21:41:08.824Z] Docker Compose override file for building image:
version: '3'

services:
  dill:
    image: vsc-dill-103ee479de0f5df8a7a34e89f897c386
    build:
      dockerfile: /tmp/devcontainercli-jpollak/container-features/0.19.0-1665092467661/Dockerfile-with-features
      target: dev_containers_target_stage
      context: /home/jpollak/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
      args:
        - BUILDKIT_INLINE_CACHE=1
        - _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label
        - _DEV_CONTAINERS_IMAGE_USER=dill
        - _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp

[2022-10-06T21:41:08.825Z] Start: Run: docker compose --project-name dill_devcontainer -f /home/jpollak/src/pickle/dill/.devcontainer/docker-compose.yaml -f /home/jpollak/src/pickle/dill/.devcontainer/docker-compose.gpu.yaml -f /home/jpollak/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1665092468824.yml build
[2022-10-06T21:41:08.870Z] 1 error occurred:
	* unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/jpollak/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder/tmp: no such file or directory


[2022-10-06T21:41:08.872Z] Stop (47 ms): Run: docker compose --project-name dill_devcontainer -f /home/jpollak/src/pickle/dill/.devcontainer/docker-compose.yaml -f /home/jpollak/src/pickle/dill/.devcontainer/docker-compose.gpu.yaml -f /home/jpollak/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1665092468824.yml build
[2022-10-06T21:41:08.874Z] Error: Command failed: docker compose --project-name dill_devcontainer -f /home/jpollak/src/pickle/dill/.devcontainer/docker-compose.yaml -f /home/jpollak/src/pickle/dill/.devcontainer/docker-compose.gpu.yaml -f /home/jpollak/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1665092468824.yml build
[2022-10-06T21:41:08.874Z]     at pd (/home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js:259:426)
[2022-10-06T21:41:08.874Z]     at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2022-10-06T21:41:08.874Z]     at async ZF (/home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js:259:2424)
[2022-10-06T21:41:08.875Z]     at async XF (/home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js:241:2391)
[2022-10-06T21:41:08.875Z]     at async bD (/home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js:303:2193)
[2022-10-06T21:41:08.875Z]     at async ys (/home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js:303:3182)
[2022-10-06T21:41:08.875Z]     at async UL (/home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js:423:10319)
[2022-10-06T21:41:08.875Z]     at async ML (/home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js:423:10075)
[2022-10-06T21:41:08.877Z] Stop (1658 ms): Run: /snap/code/108/usr/share/code/code --ms-enable-electron-run-as-node /home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/jpollak/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-compose-path docker compose --workspace-folder /home/jpollak/src/pickle/dill --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/jpollak/src/pickle/dill --log-level debug --log-format json --config /home/jpollak/src/pickle/dill/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2022-10-06T21:41:08.878Z] Exit code 1
[2022-10-06T21:41:08.882Z] Command failed: /snap/code/108/usr/share/code/code --ms-enable-electron-run-as-node /home/jpollak/.vscode/extensions/ms-vscode-remote.remote-containers-0.255.2/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/jpollak/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-compose-path docker compose --workspace-folder /home/jpollak/src/pickle/dill --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/jpollak/src/pickle/dill --log-level debug --log-format json --config /home/jpollak/src/pickle/dill/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2022-10-06T21:41:08.882Z] Exit code 1

Steps to Reproduce:

  1. Rebuild Devcontainer

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcontainersIssue in vscode-remote containersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions