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 not working anymore with docker compose V2. #9978

Closed
cristiangabor opened this issue Jun 13, 2024 · 6 comments
Closed

Devcontainer not working anymore with docker compose V2. #9978

cristiangabor opened this issue Jun 13, 2024 · 6 comments
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@cristiangabor
Copy link

  • VSCode Version:
  • Local OS Version:
  • Remote OS Version:
  • Remote Extension/Connection Type: Containers/WSL/Server
  • Logs:

Steps to Reproduce:

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

@VSCodeTriageBot VSCodeTriageBot added the containers Issue in vscode-remote containers label Jun 13, 2024
@chrmarti
Copy link
Contributor

Please provide more details.

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jun 14, 2024
@dlencer
Copy link

dlencer commented Jun 21, 2024

It is broken for me too. From the output I get, it seems the extension is trying to call old-style docker-compose rather than the current docker compose.

@chrmarti
Copy link
Contributor

It first tries docker-compose and if that doesn't exist uses docker compose. (There is a change being prepared to reverse the order.)

@dlencer
Copy link

dlencer commented Jun 21, 2024

Thank you for your quick reply. I am using WSL2/Docker Desktop and it seems I cannot easily get rid of docker-compose on my PATH, but judging form the printed out version (Docker Compose version: 2.27.1-desktop.1), it seems to be using the current version nonetheless. Nevertheless, I am unable to get my devcontainer up and running, it takes forever doing docker-compose config; during that, VS Code disconnects, then somehow manages to reconnect to a redrawn window, showing at least the name of the right folder, but that is it. In the "Window" section of Output, I see a constant stream of messages like 2024-06-21 11:44:33.185 [info] [LocalProcess0][resolveAuthority(dev-container,1)][586009ms] waiting.... Might be I rather suffer from the issue in #9506.

@chrmarti
Copy link
Contributor

Please append the Dev Containers log from when this happens. (F1 > Dev Containers: Show Container Log)

@dlencer
Copy link

dlencer commented Jun 24, 2024

It is embarassing to say, but I found a typo in one of my compose files (representing layers; base, dev, staging, production, ...). It caused docker compose config to go wild, unfortunately without printing any error messages. After fixing the compose file, everything is working again.

Many thanks again for your support. I really enjoy dev containers with VS Code, it is a great tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants