J. Scott Elblein
J. Scott Elblein

Reputation: 4253

Where to find mounted folders inside a Docker container?

Still pretty wet behind the ears with Docker (and only so-so with Linux); I've fired up a container with a few mounted folders.

I know that I can find the volumes at /var/lib/docker/volumes and /mnt/sda1/var/lib/docker/volumes, but what I'm trying to find are the paths inside the container.

For example, I do a: -v my_mounted_volume:/config

my_mounted_volume would be in the paths listed above, but if I wanted to go to /config instead, how do I get there?

Upvotes: 0

Views: 1390

Answers (2)

UserASR
UserASR

Reputation: 2205

You can also do docker inspect <ContainerID>.

It will list the source destination details.

Upvotes: 0

Jb31
Jb31

Reputation: 1391

You can access it inside the container, i.e.:

docker exec -it <container> sh
cd /config

Upvotes: 2

Related Questions