How do you re-build a service my-service that is defined in a Docker Compose file without running the service?
Experience Level: Junior
Tags: Docker Compose
Answer
Run the following command:
docker compose build my-service
Related Docker Compose job interview questions
How do you stop Docker Compose services that were previously executed in a detached mode?
Docker Compose JuniorHow do you run services from a Docker Compose file in a detached mode?
Docker Compose JuniorHow do you define a service in the docker-compose file?
Docker Compose JuniorHow do you install Docker Compose?
Docker Compose JuniorWhat are the key sections of the Docker Compose definition file?
Docker Compose Junior