Volumes marked as unused


i’m using portainer version 1.20. I’m able to run containers but the volumes asre mark as used. If I issue the commands below, the volume and container are created and run properly. However the volume shows up as unused in the web ui.

Any way I can get the volume use to report correctly?

docker volume create test_volume

docker run -dit --restart unless-stopped --name=test -v /var/lib/docker/volumes/test_volume:/config

when your running your container, its being mapped to a folder instead of a volume!

docker volume create test_volume
this will create the volume

docker run -dit --restart unless-stopped --name=test -v test_volume:/config
this will use that volume so you dont need the /var/lib/docker/volumes in the command