Docker Community Forums

Share and learn in the Docker community.

Significance of existence of data volume container

I do not know the significance of existence of Docker’s data volume container. Although it is said that portability will rise, you cannot commit or export the container with data in it, so you will eventually transfer the file to the host side. Then, should we mount the host’s directory from the beginning?

Could you tell me what kind of situations will use the data volume container?

Data containers were generally sort of a hack historically to get around the fact that Docker did not have first-class volumes management. Now that docker volume exists, learn how to use that.

1 Like