Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
5 views
in Docker by (2.3k points)
recategorized by
How to create docker volume?

1 Answer

0 votes
by (6.9k 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.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jun 22, 2020 in Docker by Sudhir_1997 (55.6k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...