devcontainers / devcontainers/ci

Error retrieving current directory in the container

Open
#230 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
496
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am using the Azure DevOps extension and I am getting the error below :
```
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Failed to determine current working directory: getwd: no such file or directory
{"outcome":"error","message":"Command failed: bash -c terraform init -backend-config=./backend.tfvars","description":"An error occurred running a command in the container."}
```
This error occurs when Running a command in the dev container. Here is my command

`terraform init -backend-config=./backend.tfvars`

Task configuration :

- task: DevcontainersCi@0
displayName: 'Terraform init '
inputs:
imageName: 'dev-container/terraform'
runCmd: 'terraform init -backend-config=./backend.tfvars'
push: never
skipContainerUserIdUpdate: false

Is there something wrong here? Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.