neochrome / lsdvol

Lists volumes in use by a Docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Usage

On a Docker host

For a basic listing of volumes in use by the container my-container:

$ lsdvol my-container

From within a running Docker container

The container must have the /var/run/docker.sock bound in order for the program to function properly.

For a basic listing of volumes in use, execute the following from within a Docker container:

$ lsdvol

Non-standard location of docker.sock

If your docker.sock is in a non-standard location, either when bound in a container or on a Docker host, please specify the location as:

$ lsdvol --docker-socket /my/other/docker.socket

Other options

For other options, launch with --help.

About

Lists volumes in use by a Docker container

License:The Unlicense


Languages

Language:Go 89.3%Language:Makefile 10.7%