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

@devcontainer/cli@0.9.1 unable to run devcontainer up #108

Closed
doggy8088 opened this issue Aug 7, 2022 · 3 comments
Closed

@devcontainer/cli@0.9.1 unable to run devcontainer up #108

doggy8088 opened this issue Aug 7, 2022 · 3 comments
Assignees
Milestone

Comments

@doggy8088
Copy link

I'm using Windows 10. I've just checked Development container CLI page and installed dev container CLI using the following command:

npm install -g @devcontainers/cli

After been installed, I realized that it's a bit different than docs said:

I only have two commands:

devcontainer <command>

Commands:
  devcontainer open [path]   Open a dev container in VS Code
  devcontainer build [path]  Build a dev container image

Options:
  -h, --help               Show help  [boolean]
      --disable-telemetry  Disable telemetry  [boolean] [default: false]

What am I missing?

@bamurtaugh
Copy link
Member

Thanks for filing! It looks like you may have the previous VS Code dev container CLI installed as well.

Could you run devcontainer which to see if it outputs the path where you installed the package from devcontainers/cli, or if it outputs a path to the older CLI?

@alexdima alexdima self-assigned this Aug 9, 2022
@alexdima alexdima added this to the August 2022 milestone Aug 9, 2022
@doggy8088
Copy link
Author

doggy8088 commented Aug 9, 2022

I found the exact problem now. Here is how I can reproduce this problem:

  1. Execute Remote-Containers: Install devcontainer CLI in VSCode.

    image

    image

  2. I found that this VSCode command will add the following path to PATH environment.

    c:\Users\user\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\cli-bin
  3. Run the devcontainer.cmd from this folder will lead to this problem.

    image

I think you should prevent this dependency issue from the Remote-Containers extension.

@chrmarti
Copy link
Contributor

chrmarti commented Sep 8, 2022

The latest version of Remote-Containers forwards to the @devcontainers/cli. Closing as fixed.

@chrmarti chrmarti closed this as completed Sep 8, 2022
@chrmarti chrmarti modified the milestones: September 2022, August 2022 Sep 8, 2022
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

No branches or pull requests

4 participants