docker-compose force rebuild
# Build images before starting containers. docker-compose up --build # Recreate containers even if configuration/image hasn't changed. docker-compose up --force-recreate
docker compose recreate
docker-compose ps # lists all services (id, name) docker-compose stop <id/name> #this will stop only the selected container docker-compose rm <id/name> # this will remove the docker container permanently docker-compose up # builds/rebuilds all not already built container
Source: stackoverflow.com