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

down:
https://forums.docker.com/t/docker-compose-down-specific-service/125914/8
https://docs.docker.com/reference/cli/docker/compose/down/
up:
https://docs.docker.com/reference/cli/docker/compose/up/

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?