Closed jandubois closed 3 days ago
Just a quick update, I’m running this (on Rancher Desktop 1.16 and windows 10) and trying the following:
nerdctl compose up -d
While it is mentioned here that there should be compatibility with docker-compose (and the above command works fine with docker), however, it fails with the following error:
FATA[0000] no configuration file provided: not found
Modifying the command to specify the file, however:
nerdctl compose -f .\docker-compose.yaml up -d
It works with no problem.
This may actually be an issue with Rancher Desktop on Windows; I've tried to repro the issue on macOS, and it seems to be working there:
$ nerdctl compose up -d
WARN[0000] /Users/jan/tmp/composetest/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
…
The code to specify default config files at https://github.com/containerd/nerdctl/blob/43b613322cfde3e5460a0738f055578ea1e41dcd/pkg/composer/composer.go#L83
This is likely an issue with the nerdctl-stub
handler that converts Windows paths to Linux paths.
The docker compose documentation says:
This was implemented as part of #305 (although the names were in the wrong order, I think).
But #802 seems to have removed that code again, probably by accident.
cc: @nino-K