0 votes
1 view
by (2.3k points)
How to create docker volume?

1 Answer

0 votes
by (6.5k points)

To create a new docker volume you will need to use this command:

$ sudo docker volume create -d <driver_name> <volume_name>

You can omit the driver name if you just want to create a normal volume.

To see your created volume use this command:

$ sudo docker volume ls

And if you want to remove/delete the Volume you created you can use this command:

$ sudo docker volume rm <name_of_volume> 

Hope this helped :)


Looks like you maybe new to docker , you may need some help with docker, try out the docker training course. You will be taught by industry professional who will help you out at every step.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...