how to rebuild image docker-compose code example Example: docker compose rebuild image $ docker-compose up -d --no-deps --build <service_name>