-
Notifications
You must be signed in to change notification settings - Fork 524
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
No services were found in the compose document(s). Did you mean to use profiles instead? #4264
Comments
Can you share your compose document? |
don't think it's related to particular compose file. Same compose file works on another machine. And it seems any compose file would be the same on this machine. I created a minimal compose, it gives this error. version: '3'
services:
hello1:
image: hello-world
hello2:
image: hello-world
More vscode info: Version: 1.87.2 it's newly installed ubuntu 22.04. Never happend like this previously. |
Do you have a non-default value for the setting |
I didn't change the default setting. I check in // Command templates for `docker-compose up` commands.
"docker.commands.composeUp": [
{
"label": "Compose Up",
"template": "${composeCommand} ${configurationFile} up ${detached} ${build}"
}
],
// Command templates for `docker-compose up <subset>` commands.
"docker.commands.composeUpSubset": [
{
"label": "Compose Up",
"template": "${composeCommand} ${profileList} ${configurationFile} up ${detached} ${build} ${serviceList}"
}
],
Removed the |
The profile list is for when you're using compose profiles instead of service subsets. When they aren't in use, we substitute in an empty string, and vice versa with Can you run |
looks like the output is fine. $ docker compose -f docker-compose-hello.yml config --services
hello1
hello2 |
This could be a Snap issue. Can you try the workaround in #3843 (comment) and see if that fixes it? |
This is a tough one. The call to |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
FYI, after switch to deb installation, the issue is gone. |
When right click on the docker-compose.yml file, and select 'Compose up - selected services', no service is found, even though there are services in the file, and 'Compose Up' is able to run all of them.
vscode: v1.87.2
docker extension: v1.29.0
Docker version 24.0.5, build ced0996
The text was updated successfully, but these errors were encountered: