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

unknown flag: --no-recreate when "Dev containers: Reopen in Container" on VSCode #1190

Open
sugilog opened this issue Nov 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sugilog
Copy link

sugilog commented Nov 20, 2024

Describe the bug

"Dev containers: Reopen in Container" on VSCode to start devcontainer, then devcontainer failed to start.

Steps to reproduce

  • open VSCode on your mac.
  • configure using finch instead of docker/docker-compose in VSCode Settings.
  • open folder some folder contains .devcontainer configuration.
  • call "Dev containers: Reopen in Container" using VSCode Command Pallete. (without existing devcontainer)
  • call "Dev containers: Reopen Folder Locally" to go back to host machine (and container will be exit)
  • call "Dev containers: Reopen in Container" using VSCode Command Pallete.

Expected behavior

  • supporting --no-recreate docker flag.
  • available to start devcontainer by finch.

Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.

[2024-11-20T05:16:13.366Z] Start: Run: finch compose --project-name PROJECTNAME -f /Users/sugilog/gitrepo/.devcontainer/docker-compose.yml -f /Users/sugilog/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1732079773218.yml -f /Users/sugilog/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1732079773365-4271669d-7b29-46d2-a2a2-caf683fc3eb1.yml up -d --no-recreate
[2024-11-20T05:16:13.503Z] FATA[0000] unknown flag: --no-recreate                  
[2024-11-20T05:16:13.506Z] Stop (140 ms): Run: finch compose --project-name PROJECTNAME -f /Users/sugilog/gitrepo/.devcontainer/docker-compose.yml -f /Users/sugilog/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1732079773218.yml -f /Users/sugilog/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1732079773365-4271669d-7b29-46d2-a2a2-caf683fc3eb1.yml up -d --no-recreate
[2024-11-20T05:16:13.507Z] Error: Command failed: finch compose --project-name PROJECTNAME -f /Users/sugilog/gitrepo/.devcontainer/docker-compose.yml -f /Users/sugilog/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1732079773218.yml -f /Users/sugilog/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1732079773365-4271669d-7b29-46d2-a2a2-caf683fc3eb1.yml up -d --no-recreate

Additional context

% finch --version
finch version v1.4.1

% docker --version
finch version v1.4.1

% code --version
1.95.3
f1a4fb101478ce6ec82fe9627c43efbf9e98c813
arm64

To help debug the issue as quickly as possible, we recommend generating a support bundle with finch support-bundle generate and attaching it to this issue. This packages all Finch-related configs and logs into one file.

finch-support-20241120142615.zip

@sugilog sugilog added the bug Something isn't working label Nov 20, 2024
@pendo324
Copy link
Member

I've created a PR to add these commands to nerdctl: containerd/nerdctl#3687

I think dev container behavior should be the same with or without this argument, so we may remove it from the list of arguments temporarily as a workaround

@sugilog
Copy link
Author

sugilog commented Nov 21, 2024

@pendo324 Thank you for your quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants