Docker Community Forums

Share and learn in the Docker community.

Listing volumes of docker image created with Stack

Hi,

Should the volumes, declared here, not be listed under /docker/volumes in het portainer UI?
They are not listed, is this normal? The image works fine…
The ‘docker volume ls’ command, also does not list these volumes…

stack file:

version: “3”

services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- “53:53/tcp”
- “53:53/udp”
- “67:67/udp”
- “8080:80/tcp”
environment:
TZ: ‘Europe/Amsterdam’
WEBPASSWORD: ‘XXX’
# Volumes store your data between container upgrades
volumes:
- ‘./etc-pihole/:/etc/pihole/’
- ‘./etc-dnsmasq.d/:/etc/dnsmasq.d/’
# Recommended but not required (DHCP needs NET_ADMIN)
cap_add:
- NET_ADMIN
restart: unless-stopped

Those are not volumes, those are bind-mounts, even though they are configured underneath the volumes key. Bind-mounts are not listed with docker volume ls.