I have a a script which builds docker image, loads it to docker, updates docker-compose.yml then it calls docker compose down and docker compose up. After the Docker compose up services are recreated and service which i’m interesting for is running with correct (new) version.

I don’t want to stop all services, which are stopped by docker compose down, i want to stop the only target one. I found that both docker compose up and docker compose down supports specifying service name


But when i call docker compose down myservicename in Docker version 25.0.3 i receive error: unknown command "myservicename" for "docker compose down"

How to stop (and remove) only one container ?
May be there is another way to “update image” for only one container?