dperson / samba

Samba docker container
GNU Affero General Public License v3.0
1.52k stars 514 forks source link

Why does this container use volumes? #370

Open devedse opened 3 years ago

devedse commented 3 years ago

I was just playing around with setting up Samba and kept running into issues where shares I removed kept popping up.

After looking in the github issues here I found out that the Samba container apparently makes use of volumes to store data.

I would rather have the container not remember everything if I recreate it and just store it's data on it's own filesystem. That way if you recreate the container from for example 'portainer' or with 'watchtower', no old data is kept.

E.g. if you remove a share in my container CMD I wouldn't want it to store that somewhere.

ksurl commented 3 years ago

you can just delete the container and recreate it. it will create new volumes. and then prune the unmounted volumes