What happens if a config is removed while still in use?

  1. The config is removed and the container crashes
  2. Docker gives an error and doesn't remove it
  3. Docker renames the config
  4. The config becomes read-only
Correct answer Docker gives an error and doesn't remove it

Explanation

Docker prevents removal of configs that are still in use by active services.

Update: Admin added a tag on this question

Topics

By Admin · · 32 views