When I create a volume, the name appears like this: 5feb972bde42aad5df0de56e4b40e92d8b9761164c9dce80c10a0127c44160c4
This is how I'm creating it:
sudo docker run -d -e url=http://example.com --name some-ghost -p 3005:2372 -v "$(pwd)/target":/var/lib/ghost/content ghost:1-alpine
When I inspect it, it shows this:
[
{
"CreatedAt": "2020-03-29T20:09:45-04:00",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/5feb972bde42aad5df0de56e4b40e92d8b9761164c9dce80c10a0127c44160c4/_data",
"Name": "5feb972bde42aad5df0de56e4b40e92d8b9761164c9dce80c10a0127c44160c4",
"Options": null,
"Scope": "local"
}
]
So two things:
- How to I know the destination of that volume? For example, I know that one is in
/home/ubuntu/target
, but if I didn't know, how can I find out? - When I create the volume on the first code above, how can I name the volume so instead of showing a random number as name, I can name it myself?
Thank you