All files were deleted after installing nextcloud on nas server

hi guys
im noob
ive installed nextcloud docker on wd4100 nas to my home dir
and all the files are gone :man_facepalming:
any way to recover ?

Revover them from your backup.

it was the backup

Then make first a backup of your original files on anther space. A nas is no backup.

so the content of the drive is pretty much gone? is there a way to recover ?

There are too less information about the steps you did. If you created a new file system on your NAS and installed on the blank disk, the data might be overwritten (partially).

the files on my nas were stored in
/mnt/HD/HD_a2/Public

ive ran:

docker run -d -p 8080:80
-v /mnt/HD/HD_a2/Public:/var/www/html
–name nextcloud nextcloud

the file nextcloud-init-sync.lock appeared and my data was gone :man_facepalming:

So you did create the container in the same folder, where your data were stored?
What does happen, if you stop the container? - Maybe the folder mnt/HD/HD_a2/Public has been mounted, that the data became inaccessable.

I qam not involved with docker commands, but I could not find the parameters “-d”, “-v” and “-p” with docker commands.

Forget Docker for a moment: are there files - anything - located in the above path on your NAS?

This command alone would not wipe out your data. What were you trying to do at at the time? This would have started up a new container, utilizing your existing data volume.

But you can check the logs: docker logs nextcloud to see what it did when it started nonetheless.

P.S. Once you get this sorted out, if this container is used for anything more than testing (it sounds like it since you mention losing data) use a Docker Compose file rather than using fragile (and lengthy) “docker run” commands to run your container(s).

Under Linux:
You can check with the command
mount

whether mnt/HD/HD_a2/Public is mounted on a mountpoint
with
umount < mountpoint-name >
you can unmount the path and the files should be back then.

yes. apparently ive created a container in the same folder

i don’t see mnt/HD/HD_a2/Public mounted at any point.
maybe its mounted under
/dev/md1 on /mnt/HD/HD_a2 type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,resgid=990,stripe=48,data=ordered)
/dev/md2 on /mnt/HD/HD_b2 type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,stripe=256,data=ordered)

but those are inaccessible

this is what i get when running mount:

root@Tatyana Public # mount
rootfs on / type rootfs (rw)
sysfs on /sys type sysfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
squash on /usr/local/tmp type ramfs (rw,relatime)
/usr/local/tmp/image.cfs on /usr/local/modules type squashfs (ro,relatime)
/dev/mmcblk0p6 on /usr/local/tmp_wdnas_config type ext4 (rw,noatime,nodiratime,sync,data=ordered)
tmpfs on /mnt type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,nr_inodes=0)
tmpfs on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime,size=40960k,nr_inodes=0)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,nr_inodes=20000)
/dev/md0p1 on /usr/local/upload type ext4 (rw,relatime,data=ordered)
/dev/sda4 on /mnt/HD_a4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/sdb4 on /mnt/HD_b4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/sdc4 on /mnt/HD_c4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/sdd4 on /mnt/HD_d4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/md1 on /mnt/HD/HD_a2 type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,resgid=990,stripe=48,data=ordered)
/dev/md2 on /mnt/HD/HD_b2 type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,stripe=256,data=ordered)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,relatime,rdma)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,relatime,debug)
/dev/md1 on /mnt/HD/HD_a2/Nas_Prog/_docker type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,resgid=990,stripe=48,data=ordered)
nsfs on /run/docker/netns/default type nsfs (rw)
nsfs on /run/docker/netns/a755d06aa7b2 type nsfs (rw)

not getting hopes high but this is what i get when running:

root@Tatyana Public # df -h
Filesystem                Size      Used Available Use% Mounted on
mdev                      1.9G      8.0K      1.9G   0% /dev
/dev/loop0              219.8M    219.8M         0 100% /usr/local/modules
/dev/mmcblk0p6           18.4M    386.0K     16.6M   2% /usr/local/tmp_wdnas_config
tmpfs                     1.0M         0      1.0M   0% /mnt
tmpfs                    40.0M     14.0M     26.0M  35% /var/log
tmpfs                   100.0M      3.8M     96.2M   4% /tmp
/dev/md0p1              525.3M      4.0K    514.3M   0% /usr/local/upload
/dev/sda4               928.9M    123.8M    789.1M  14% /mnt/HD_a4
/dev/sdb4               928.9M     52.0K    912.9M   0% /mnt/HD_b4
/dev/sdc4               928.9M     52.0K    912.9M   0% /mnt/HD_c4
/dev/sdd4               928.9M     52.0K    912.9M   0% /mnt/HD_d4
/dev/md1                 27.2T    171.9G     26.7T   1% /mnt/HD/HD_a2
/dev/md2                 21.7T      9.3G     21.5T   0% /mnt/HD/HD_b2
cgroup                    1.9G         0      1.9G   0% /sys/fs/cgroup
/dev/md1                 27.2T    171.9G     26.7T   1% /mnt/HD/HD_a2/Nas_Prog/_docker

so at /dev/md1 there is still some data

prior running the docker i had all my files in /mnt/HD/HD_a2/Public
at the moment i only get nextcloud system files

@jtr i was trying to deploy nextcloud on my nas server to see if it fits for my work.
the docker logs goes back to 12 hours since it’s trying to run some process that encounters some issues.

this is the issue from Logging page in nextcloud:
|Error|richdocuments|ConnectExceptioncURL error 6: getaddrinfo() thread failed to start (see libcurl - Error Codes) for http://tatyana.local:8080/custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities

Failed to fetch the Collabora capabilities endpoint: cURL error 6: getaddrinfo() thread failed to start (see libcurl - Error Codes) for http://tatyana.local:8080/custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities|
| — | — |

thank you for your response.


@Mornsgrans when nextcloud docker is running this is what i get when running mount
root@Tatyana image # mount
rootfs on / type rootfs (rw)
sysfs on /sys type sysfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
squash on /usr/local/tmp type ramfs (rw,relatime)
/usr/local/tmp/image.cfs on /usr/local/modules type squashfs (ro,relatime)
/dev/mmcblk0p6 on /usr/local/tmp_wdnas_config type ext4 (rw,noatime,nodiratime,sync,data=ordered)
tmpfs on /mnt type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,nr_inodes=0)
tmpfs on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime,size=40960k,nr_inodes=0)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,nr_inodes=20000)
/dev/md0p1 on /usr/local/upload type ext4 (rw,relatime,data=ordered)
/dev/sda4 on /mnt/HD_a4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/sdb4 on /mnt/HD_b4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/sdc4 on /mnt/HD_c4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/sdd4 on /mnt/HD_d4 type ext4 (rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered)
/dev/md1 on /mnt/HD/HD_a2 type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,resgid=990,stripe=48,data=ordered)
/dev/md2 on /mnt/HD/HD_b2 type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,stripe=256,data=ordered)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,relatime,rdma)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,relatime,debug)
/dev/md1 on /mnt/HD/HD_a2/Nas_Prog/_docker type ext4 (rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,resgid=990,stripe=48,data=ordered)
nsfs on /run/docker/netns/default type nsfs (rw)
nsfs on /run/docker/netns/a755d06aa7b2 type nsfs (rw)

dont see mnt/HD/HD_a2/Public mounted at any mount point

when running root@Tatyana Public # df -h

this is what i get

root@Tatyana Public # df -h
Filesystem                Size      Used Available Use% Mounted on
mdev                      1.9G      8.0K      1.9G   0% /dev
/dev/loop0              219.8M    219.8M         0 100% /usr/local/modules
/dev/mmcblk0p6           18.4M    386.0K     16.6M   2% /usr/local/tmp_wdnas_config
tmpfs                     1.0M         0      1.0M   0% /mnt
tmpfs                    40.0M     14.0M     26.0M  35% /var/log
tmpfs                   100.0M      3.8M     96.2M   4% /tmp
/dev/md0p1              525.3M      4.0K    514.3M   0% /usr/local/upload
/dev/sda4               928.9M    123.8M    789.1M  14% /mnt/HD_a4
/dev/sdb4               928.9M     52.0K    912.9M   0% /mnt/HD_b4
/dev/sdc4               928.9M     52.0K    912.9M   0% /mnt/HD_c4
/dev/sdd4               928.9M     52.0K    912.9M   0% /mnt/HD_d4
/dev/md1                 27.2T    171.9G     26.7T   1% /mnt/HD/HD_a2
/dev/md2                 21.7T      9.3G     21.5T   0% /mnt/HD/HD_b2
cgroup                    1.9G         0      1.9G   0% /sys/fs/cgroup
/dev/md1                 27.2T    171.9G     26.7T   1% /mnt/HD/HD_a2/Nas_Prog/_docker

apparently there is some data at /dev/md1
but pretty sure that i had more than 172gigs of data

thank you for your help


@devnull thanks for your response most of the data is backed up on external disks but have some important patients files with their imaging and surgery videos that were uncomfortable to store on external drives and the nas was the only copy i had

when running docker inspect nextcloud

[
    {
        "Id": "--changed the original ----",
        "Created": "2024-01-24T01:33:22.716785925Z",
        "Path": "/entrypoint.sh",
        "Args": [
            "apache2-foreground"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 16901,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-01-24T12:05:06.231764537Z",
            "FinishedAt": "2024-01-24T04:32:43.972361012Z"
        },
        "Image": "sha256:--changed the original ----",
        "ResolvConfPath": "/mnt/HD/HD_a2/Nas_Prog/_docker/containers/--changed the original ----/resolv.conf",
        "HostnamePath": "/mnt/HD/HD_a2/Nas_Prog/_docker/containers/--changed the original ----/hostname",
        "HostsPath": "/mnt/HD/HD_a2/Nas_Prog/_docker/containers/--changed the original ----/hosts",
        "LogPath": "/mnt/HD/HD_a2/Nas_Prog/_docker/containers/--changed the original ----/--changed the original -----json.log",
        "Name": "/nextcloud",
        "RestartCount": 0,
        "Driver": "vfs",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/mnt/HD/HD_a2/Public:/var/www/html"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "80/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Capabilities": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": null,
            "Name": "vfs"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/mnt/HD/HD_a2/Public",
                "Destination": "/var/www/html",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "3411eddde7d6",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "PHPIZE_DEPS=autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c",
                "PHP_INI_DIR=/usr/local/etc/php",
                "APACHE_CONFDIR=/etc/apache2",
                "APACHE_ENVVARS=/etc/apache2/envvars",
                "PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
                "PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
                "PHP_LDFLAGS=-Wl,-O1 -pie",
                "GPG_KEYS--changed the original ----  --changed the original ----  --changed the original ----",
                "PHP_VERSION=8.2.15",
                "PHP_URL=https://www.php.net/distributions/php-8.2.15.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.2.15.tar.xz.asc",
                "PHP_SHA256=--changed the original ----",
                "PHP_MEMORY_LIMIT=512M",
                "PHP_UPLOAD_LIMIT=512M",
                "APACHE_BODY_LIMIT=1073741824",
                "NEXTCLOUD_VERSION=28.0.1"
            ],
            "Cmd": [
                "apache2-foreground"
            ],
            "Image": "nextcloud",
            "Volumes": {
                "/var/www/html": {}
            },
            "WorkingDir": "/var/www/html",
            "Entrypoint": [
                "/entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {},
            "StopSignal": "SIGWINCH"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "--changed the original ----",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8080"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/a755d06aa7b2",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "--changed the original ----",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "--changed the original ----",
                    "EndpointID": "--changed the original ----",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02",
                    "DriverOpts": null
                }
            }
        }
    }
]



what is the difference between docker stop nextcloud vs docker kill nexcloud ? would any of them will try to unmount the from /mnt/HD/HD_a2/Public
root@Tatyana Public # docker history nextcloud
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
8967f8874473        4 days ago          /bin/sh -c #(nop)  CMD ["apache2-foreground"]   0B                  
<missing>           4 days ago          /bin/sh -c #(nop)  ENTRYPOINT ["/entrypoint.…   0B                  
<missing>           4 days ago          /bin/sh -c #(nop) COPY multi:ffab9c7fb870f8a…   8.12kB              
<missing>           4 days ago          /bin/sh -c #(nop) COPY multi:33245dda9914c69…   12.2kB              
<missing>           4 days ago          /bin/sh -c set -ex;     fetchDeps="         …   571MB               
<missing>           4 days ago          /bin/sh -c #(nop)  ENV NEXTCLOUD_VERSION=28.…   0B                  
<missing>           4 days ago          /bin/sh -c {      echo 'LimitRequestBody ${A…   38B                 
<missing>           4 days ago          /bin/sh -c #(nop)  ENV APACHE_BODY_LIMIT=107…   0B                  
<missing>           4 days ago          /bin/sh -c a2enmod headers rewrite remoteip …   131B                
<missing>           4 days ago          /bin/sh -c #(nop)  VOLUME [/var/www/html]       0B                  
<missing>           4 days ago          /bin/sh -c {         echo 'opcache.enable=1'…   355B                
<missing>           4 days ago          /bin/sh -c set -ex;         savedAptMark="$(…   66MB                
<missing>           4 days ago          /bin/sh -c #(nop)  ENV PHP_UPLOAD_LIMIT=512M    0B                  
<missing>           4 days ago          /bin/sh -c #(nop)  ENV PHP_MEMORY_LIMIT=512M    0B                  
<missing>           4 days ago          /bin/sh -c set -ex;         apt-get update; …   68.2MB              
<missing>           5 days ago          /bin/sh -c #(nop)  CMD ["apache2-foreground"]   0B                  
<missing>           5 days ago          /bin/sh -c #(nop)  EXPOSE 80                    0B                  
<missing>           5 days ago          /bin/sh -c #(nop) WORKDIR /var/www/html         0B                  
<missing>           5 days ago          /bin/sh -c #(nop) COPY file:e3123fcb6566efa9…   1.35kB              
<missing>           5 days ago          /bin/sh -c #(nop)  STOPSIGNAL SIGWINCH          0B                  
<missing>           5 days ago          /bin/sh -c #(nop)  ENTRYPOINT ["docker-php-e…   0B                  
<missing>           5 days ago          /bin/sh -c docker-php-ext-enable sodium         17B                 
<missing>           5 days ago          /bin/sh -c #(nop) COPY multi:e11221d43af7136…   7.21kB              
<missing>           5 days ago          /bin/sh -c set -eux;   savedAptMark="$(apt-m…   49MB                
<missing>           5 days ago          /bin/sh -c #(nop) COPY file:ce57c04b70896f77…   587B                
<missing>           5 days ago          /bin/sh -c set -eux;   savedAptMark="$(apt-m…   13.4MB              
<missing>           5 days ago          /bin/sh -c #(nop)  ENV PHP_SHA256=eca5deac02…   0B                  
<missing>           5 days ago          /bin/sh -c #(nop)  ENV PHP_URL=https://www.p…   0B                  
<missing>           5 days ago          /bin/sh -c #(nop)  ENV PHP_VERSION=8.2.15       0B                  
<missing>           13 days ago         /bin/sh -c #(nop)  ENV GPG_KEYS=39B641343D8C…   0B                  
<missing>           13 days ago         /bin/sh -c #(nop)  ENV PHP_LDFLAGS=-Wl,-O1 -…   0B                  
<missing>           13 days ago         /bin/sh -c #(nop)  ENV PHP_CPPFLAGS=-fstack-…   0B                  
<missing>           13 days ago         /bin/sh -c #(nop)  ENV PHP_CFLAGS=-fstack-pr…   0B                  
<missing>           13 days ago         /bin/sh -c {   echo '<FilesMatch \.php$>';  …   204B                
<missing>           13 days ago         /bin/sh -c a2dismod mpm_event && a2enmod mpm…   0B                  
<missing>           13 days ago         /bin/sh -c set -eux;  apt-get update;  apt-g…   50.5MB              
<missing>           13 days ago         /bin/sh -c #(nop)  ENV APACHE_ENVVARS=/etc/a…   0B                  
<missing>           13 days ago         /bin/sh -c #(nop)  ENV APACHE_CONFDIR=/etc/a…   0B                  
<missing>           13 days ago         /bin/sh -c set -eux;  mkdir -p "$PHP_INI_DIR…   0B                  
<missing>           13 days ago         /bin/sh -c #(nop)  ENV PHP_INI_DIR=/usr/loca…   0B                  
<missing>           13 days ago         /bin/sh -c set -eux;  apt-get update;  apt-g…   316MB               
<missing>           13 days ago         /bin/sh -c #(nop)  ENV PHPIZE_DEPS=autoconf …   0B                  
<missing>           13 days ago         /bin/sh -c set -eux;  {   echo 'Package: php…   46B                 
<missing>           13 days ago         /bin/sh -c #(nop)  CMD ["bash"]                 0B                  
<missing>           13 days ago         /bin/sh -c #(nop) ADD file:9deb26e1dbc258df4…   74.8MB

ive stope the nextcloud container still got the next cloud system files in `/mnt/HD/HD_a2/Public`
ive removed the container
root@Tatyana ~ # docker kill f097e844db27
f097e844db27
root@Tatyana ~ # docker images f097e844db27
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
root@Tatyana ~ # docker rm -v f097e844db27

but still when going to /mnt/HD/HD_a2/Public lib only files of nextcloud setup are there
any suggestions ?

Try to unmount

/dev/md1
and check the content of /mnt/HD, whether a folder HD_a2 exists.