V

Vinay • 28.75K Points
Instructor II

Q. How can you set a specific Docker Compose service to always restart on failure?

  • (A) restart: on-failure
  • (B) restart: always
  • (C) restart: on-crash
  • (D) restart: never
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category Docker

Explanation by: Vinay
The 'restart: on-failure' option sets a service to always restart on failure in Docker Compose.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics