dperson / samba

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

Duplicate shared vols after renaming a volume followed by recreating its container #416

Open LiyuCode opened 2 years ago

LiyuCode commented 2 years ago

The steps below leads to duplicated vols showing in Windows File Manager.

Env

Samba Server

Steps to reproduce

  1. Install docker & docker-compose
  2. Using the docker-compose.yml file below to create and start an dperson/samba container
    
    version: '3.4'

services: samba: image: dperson/samba container_name: vm_samba environment: TZ: 'EST5EDT' networks:

networks: default:


3. Using Windows to open the Samba service, showing there is one folder named 'ReadOnly1'.
4. Renaming the name, "ReadyOnly1", in the `docker-compose.yml`, to "ReadOnly2"
5. Executing `docker stop vm_samba` and then `docker-compose -f docker-compose.yml up -d` to stop and restart the container.
6. Using Windows to reopen the Samba service, showing there are two folders, 'ReadOnly1' and 'ReadOnly2'.

Emm.. isn't the expcected result is there is only one folder, named 'ReadOnly2'?