on-internet
← Community

How to list Docker mounted volumes from within the container

Stack Overflow ·

I want to list all container directories that are mounted volumes. I.e. to be able to get similar info I get from docker inspect --format "{{ .Volumes }}" <self> But from within the container and without having docker installed in there. I tried cat /proc/mounts, but I couldn't find a proper filter for it.

Comments

Sign in or sign up to comment and upvote.

No comments yet.