What does `VOLUME` do in Dockerfile?

  1. Removes files from image
  2. Creates persistent storage
  3. Increases image size
  4. Disables logging
Correct answer Creates persistent storage

Explanation

`VOLUME` defines mount points for persistent or shared data.

Update: Admin added a tag on this question

Topics

By Admin · · 39 views