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

Comments

No Comments Yet.
Be the first to tell us what you think.
Docker Compose
Docker Compose

Are you learning Docker Compose ? Try our test we designed to help you progress faster.

Test yourself