Interview Prep/Docker/Operations, Rootless & Podman

How do you update a single Compose service without touching others?

BeginnerProductionOperations, Rootless & Podman
Answer
docker compose pull api
docker compose up -d --no-deps api

--no-deps avoids recreating linked services. Compose recreates only the container whose config or image changed. Check with docker compose ps and docker compose logs -f api.

All Docker questions Roadmap: Docker & containers

More on Operations, Rootless & Podman