Docker compose command can't stop a container

That seems right. Can you also share the compose file or create a new compose file for us that can reproduce the issue? The latest compose can have bugs as well. Maybe you can try to downgrade it.

I assume you installed Docker from the official repo: