'Update only outdated Containers via docker-compose

I want to update all outdated containers in a docker compose, without stopping the ones that dont need an update. I tried to follow this post. But I always get this Error for the containers that dont need an update:

ERROR: for otaserver  Cannot create container for service xyz: Conflict. The container name "/xyz" is already in use by container "4a7ce43e42beaf947d69e5f45c291deb4ad83c7dc0c3aee4498c98f07fdceab7". You have to remove (or rename) that container to be able to reuse that name.

Im using docker-compose version 3, is this the issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source