I get the following error when I run "compose up" with nerdctl. How can this be resolved?
sudo nerdctl compose up
WARN[0000] Ignoring: service deepstream-peoplenet: [Tty]
WARN[0000] Ignoring: volume: Bind: [CreateHostPath]
WARN[0000] Ignoring: volume: Bind: [CreateHostPath]
WARN[0000] Ignoring: volume: Bind: [CreateHostPath]
INFO[0000] Ensuring image peoplenet-on-deepstream_deepstream-peoplenet
INFO[0000] Creating container deepstream-peoplenet
FATA[0000] name "deepstream-peoplenet" is already used by ID "5d1a1e7b97425da55d1967b5c5a4506596452bd353d097d2f3cf6002e7aba3b5"
FATA[0000] error while creating container deepstream-peoplenet: exit status 1
The error is occouring because name "deepstream-peoplenet" is already used by ID "5d1a1e7b97425da55d1967b5c5a4506596452bd353d097d2f3cf6002e7aba3b5"
Maybe if you delete the previrous container with this name, the comand compose up will run successfully.
Something like this:
I do not know if it is a problem related create a volume in docker-compose.yaml in a system with WSL, if it is I was with the same problem, a solution is use the volume mode declaration
My example:
I found the solution in these links: