Create Docker Volume

Create Docker Volume

Docker volumes are stored in a part of the host filesystem which mounted on Docker containers. Volumes are the preferred method to persist data generated by the running container. This tutorial explains how to create a Docker volume.

Volume can be created by using docker volume command with create argument. It allows creating named volume which can be easily assigned to containers. For example, the following command creates a volume named test_volume:

docker volume create test_volume

Leave a Comment

Cancel reply

Your email address will not be published.