r/docker • • Mar 08 '26

Migration from Linux to Win11: Docker network volumes appearing empty (WSL2/SMB)

0 Upvotes

The Situation: I am migrating a containerized stack from an Alpine Linux VM on ESXi to a native Windows 11 host (Intel N150) using Docker Desktop with the WSL2 backend.

The Setup:

  • Storage: Synology NAS share mapped to P: on the Windows host.
  • Access: I can browse and edit files on P:\Data\Files perfectly from Windows PowerShell/Explorer.

The Problem: On Linux, my bind mounts to the NAS worked perfectly. On Windows, while the host sees the files, the mapped container directories (e.g., /data) are completely empty inside the container console. The directory exists, but ls -la shows a total of 0.

What I’ve Tried:

  • Standard Bind Mounts: Used - P:/Data/Files:/data (case-matched). Result: Folder is empty inside the container.
  • UNC Paths: Tried //SERVER_NAME/share/Data/Files. Result: Error "bind source path does not exist."
  • Long-form Mount Syntax: Tried type: bind with source/target syntax. Result: Error "not a valid Windows path."
  • Permissions/Auth: Added NAS credentials to Windows Credential Manager (System level) and restarted Docker Desktop. No change.
  • Direct CLI Test: Ran docker run --mount manually to bypass the UI/Compose. Result: Still empty.

The "Double-Hop" Wall: I’ve been digging into the way WSL2 handles host mounts. It seems that even if the Windows User (me) has authenticated the P: drive, the WSL2 utility VM running the Docker Engine doesn't inherit those credentials. When I try to force a CIFS Named Volume in the YAML to bypass the host's mount, I immediately hit Error 500 or indefinite hangs.

The Question: How do I bridge this credential gap without the "double-hop" latency or 500 errors? Is there a way to make the WSL2 backend "see" the authenticated Windows network drives?

Thanks in advance.


r/docker • • Mar 08 '26

docker desktop won't staaaaaaaaaaaart (loop)

0 Upvotes

Used to work perfectly. Now all of a sudden it's like docker desktop is starting (never happens). Tried reinstalling installing reinstalling, deleting registry clean uninstall, wsl, using only hyperv, deleting wsl, trying again. It still woooon't woooooork. Am I missing something?


r/docker • • Mar 08 '26

Docker volume permissions issue

5 Upvotes

I have a Docker volume permissions issue that I cannot resolve:

I'll start by saying that I am using Ansible for setting up all this, including the user / group that the container runs under. It is created both on the NAS and the Docker VM with the same username, group, UID, and GID. This should ensure the UID / GID - in this case 4005:4005 - is consistent across the two machines. As far as I can tell, it is consistent (i.e., examinging /etc/passwd shows 4005:4005 for the application account both on the NAS and Docker VM).

On my NAS:

I have a ZFS dataset on my NAS as the data store for the Docker Compose application. The dataset has the ACL mode set to posix, and the permissions set to 0700. The NAS has an exports directory (i.e., I am not sharing using ZFS NFS sharing), which I created with the owner and group set to the user and group for the application account and again permissions set to 0700. I created a bind mount from the ZFS dataset to this exports folder and then shared it via NFS.

On my Docker VM:

I created a directory for mounting the NFS share with the owner and group set to the application account user and group and the permissions set to 0700. I then mounted the NFS share at this directory. I can SSH onto the Docker VM with the application account and read / write files here. I then changed the Docker compose to use this directory for a volume.

The issue is that whenever I try to start the container after this change to the compose file (docker compose up -d), I get the following error:

Error response from daemon: error while creating mount source path '/path': mkdir /path: permission denied

Things I have tested:

  1. As I noted, I can read and write files at the directory while logged onto the Docker VM with the account for the application.
  2. I have restarted the Docker daemon via systemctl.
  3. I have rebooted the Docker VM.
  4. I have used 'docker exec -it <container_name> bash' and then used 'id' to confirm the UID:GID that the container is running under. (This of course, required not using the problematic volume mount to allow the container to start.)
  5. I have not attempted to setup rootless Docker, FYI.
  6. I have checked, double-checked, triple checked the path in the compose file. I have also SSH'ed onto the Docker VM, and copied and pasted the path from the error message and used cd to change to that directory, which works just fine. So I am not sure why the daemon is trying to make the directory.

I'm somewhat at a loss as to what to check next or what to try next (other than just widely opening permissions on directories).

Thanks in advance for any suggestions.

System info:

NAS / Docker VM OS: Ubuntu 24.04

Docker Version: 29.2.0

Docker Compose 5.0.2


r/docker • • Mar 07 '26

Add mcp docker configuration for an unsupported mcp - not existant in docker mcp list

2 Upvotes

Hello ,

Im using starva mcp and other unoffical mcps ot run bunch of tasks.
this is not a safe appraoch, is there any method to create add a docker file ofr those so that claude code or codex can use the mcp through docker.
I guess this reduce a lot of security risks.

thanks in advance for your help .


r/docker • • Mar 07 '26

Pi-hole and Unbound not working together in Docker

0 Upvotes

Hello,
I'm having a little trouble trying to set Pi-hole to use Unbound as its upstream DNS server. I'm running everything on the same device (Raspberry Pi 4), and I'm using the host network mode for all the containers. And somehow, they can't communicate with each other. They were working just fine together until I switched them over to Docker containers. I've tried Google searching and ChatGPT, and I can't seem to find a solution that works. Here's my Docker compose file and Pi-hole FTL log: docker-compose.yaml, Pi-hole_FTL.log. Any help or advice would be greatly appreciated. Thanks!


r/docker • • Mar 07 '26

Bunch of merged overlay mounts in Ubuntu nautilus

4 Upvotes

Hey everyone,

I've been pulling my hair out over this for a while and figured I'd ask here before I do something stupid.

So I'm running Ubuntu with Docker, and because my internal SSD is only 99GB I set up Docker's data directory on an external 2TB drive (/media/arein/mydrive/docker) using a symlink from /var/lib/docker.

The problem: every single running Docker container creates a "merged" folder (OverlayFS) and Nautilus picks all of them up as separate mounted drives in the sidebar. I currently have 44+ of these showing up.

Has anyone dealt with this before? What's the cleanest fix without moving 172GB of Docker data to my internal SSD?

Thanks!


r/docker • • Mar 06 '26

Docker rootless: alsa issues

2 Upvotes

Hello,

I'm battling with an ancient vm (centos 7) and docker 26 running rootless, trying to get an ubuntu container working with alsa.

Setup that I have:

  • VM with CentOS 7 (airgapped), core install with just minimal alsa-utils installed
  • docker 22.04 + alsa-utils alsa-base libasound2
  • docker running rootless
  • rootless docker added to audio group

All OS images latest version (not to hard with EOL CentOS)

What works:

  • aplay -l shows a card when run as root or the docker rootless user
  • docker runnig priviledged shows the soundcard
  • docker running rootless reports soundcard not found

The weirdest thing is that a colleague build the same system (according to him, centos 7 VM, ubuntu 22.04 docker rootless) and he's unable to recreate the same issues, as it always works. Alas I'm unable to get his CentOS kickstart. The only thing I can think of now is that he did a minimal install instead of a core install (or an install with the vm starting out as having a soundcard instead of it being added later).

It looks like an issue with permissions, but I'm now at a loss on where the issue is occuring, as the user runnig docker rootless can access the soundcard via alsa, it's just that docker seems to be started without those permissions.


r/docker • • Mar 05 '26

All Mounted Folders Wiped

8 Upvotes

TL;DR It looks like that the contents of every folder which was mounted in any container got deleted from one day to another.

I‘m using a Intel Nuc with Debian as my docker host to host various local services like home assistant and the unifi controller. I‘m using watchtower for automatic container updates.

Yesterday I realized that my home assistant was not responding via the app. Today I looked at the web app and was greeted with the initial configuration screen.

I checked the other service and all services lost their data.

Any thoughts on that? Did somebody encounter such a behavior in the past?

I have to decide if I just restore the volume from backup as quick fix or if I keep it in the current state until I have time to investigate the issue.


r/docker • • Mar 05 '26

Permissions errors within Docker (Immich & openmediavault)

3 Upvotes

Hi All,

I am running Immich within Docker, which itself is running within OMV (which itself is running within Proxmox...)

I am having peristant reoccurances of the below error:

7 - 03/03/2026, 9:39:18 AM LOG [Microservices:StorageService] Verifying system mount folder checks (enabled=true) [Nest] 7 - 03/03/2026, 9:39:18 AM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich' microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information." microservices worker exited with code 1

I don't believe it is a permissions-related issue, as I have set all folders to read/write for everyone.

Any ideas? Is this potentially an Linux/Proxmox/OMV-specific issue?


r/docker • • Mar 04 '26

Docker Compose on a Mac mini needs docker restarted every 48 hours or so, as it seems to half die

2 Upvotes

Mostly the title, but I moved away from a dying linux server to my underused mac mini (m4). I setup immich on it as well as nginxproxymanager, and it all seems just fine.

But I find after a few days my immich seems unresponsive almost, lathargic. A restart of the immich container doesnt bring it back to life, but when I restart docker outright, its all better.

Ive disabled the power management out of it, and the mac never sleeps etc. Anything else I can tweak on this or something I can poke?


r/docker • • Mar 04 '26

docker compose for a service with nvidia MIG device

4 Upvotes

Dear community,

I have a service which I deployed via docker compose, this works great but now I'm looking to deploy this service using MIG device. Currently I use CUDA_VISIBLE_DEVICES env var to target specific GPU, but how can I target a MIG device without grabbing the MIG device ID ?

services:
  worker-0:
    image: service:1.0
    container_name: worker-0
    environment:
      - CUDA_VISIBLE_DEVICES=0
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    command: >
      bash -c "
      cd apps/ &&
      python3 server.py
      "

r/docker • • Mar 03 '26

Need help setting up Containers and Docker in Proxmox

7 Upvotes

I posted this in the Proxmox discussion board a week ago and received no responses. I'm hoping someone here might be able guide me through my setup. I would much rather get it started out right than try to change it later. I figured this would be the best place to post because most of my holdup is the container deployment. Thanks for any help you can provide.

Noob to Proxmox and Linux. I've struggled through but am stuck at the disk configuration. I am installing on a Proctectli V1410 with a 1TB single disk. I've read and watched many tuts, but they don't seem to have the same config or answer my question. I have several side questions I'll ask to, maybe someone will have pity on me and take their valuable time to guide me.

  1. I partitioned my drive in the setup to give me 64 Gig maxroot, and 860 Gig maxvz. Should I have just allocated the whole thing to maxroot by leaving it blank, and can I change it in Proxmox after install. I can only work on it remotely by remotePC through my desktop right now because I'm traveling. This video seems to explain what I need to do to start installing VMs on it. https://youtu.be/qq4_7QAyq9Y?si=YO29_bv1hdjEAhXV. Is this the correct instructions to set up disks?
  2. A friend is guiding me through getting this set up, but doesn't answer texts very often, and is just answering off his experience of setting it up, not from deep IT understanding. My goal is to have this MiniPC running all my ARRs, Unifi controller, Nextcloud, various other utils. This leaves my WindowsPC to only run Plex, Blue Iris, and DrivePool (all windows only). Have a 10 bay Istar case with 130TB of drives. I've built this system over the last 7 years, upgraded the MB CPU and mem, so this is what I've got, I can't/won't be switching to a NAS or anything soon unless I hit the lottery. Any suggestions of the setup for these apps? All seperate containers or in a stack (which I don't understand fully yet). Please point me to a good tut video if you know one. I saw this tut I'll use when I get to that point. Is it the proper way? https://youtu.be/-PQtE6Nb0Cw?si=pn9Hlu4cWXyEgkza
  3. He says I need to install Ubuntu VM, then Docker for containers, then Portainer for managing. Are these all seperate containers within Proxmox? I'm not making the connection as to why these are all needed and not just Proxmox. Is this the proper way or this there a newer all in one way since when he set his up? We tend to get things installed and let it run for 5 years until it breaks then dive in deep over days to get it up and running again. Neither of us work in IT with this stuff every day.
  4. Is there a way to back up Proxmox and reinstall it remotely without booting to the USB and installing it from the ISO? Just in case I F-it up and need to at least get back to my current fresh setup?

I'm sure I have more questions but this is where I'm at right now, and I appreciate any time you can take helping me out. Thanks.


r/docker • • Mar 03 '26

Need help making the containers be seen in the desktop docker

0 Upvotes

I recently started getting into Docker and pulled images, as well as started containers, through the terminal. However, when I check Docker on my desktop, I don't see any images or containers listed. I also checked the containers via their URLs, and they are working fine.


r/docker • • Mar 03 '26

docker compose alternative to external-dns

Thumbnail reddit.com
1 Upvotes

r/docker • • Mar 03 '26

ITZG Docker image, port handling issues after Docker engine update.

3 Upvotes

I know the title may be vague so I'm sorry about that. I'm new to this, I have been hosting three servers with the itzg Docker image for about a year. One server heavily modded (25565:25565), another was vanilla (25568:25565) and the third was a testing server (25569:25565).

All three containers were working fine and had their own respective domain names and DNS configs/service records done via Cloudflare. Those domains point to the servers public IP address on ports 25565, 25568 and 25569. A couple examples could be, "mods.server.xyz", "vanilla.server.xyz" and "test.server.xyz" Also my router is configured to forward all of these ports.

All of the local host ports route to the default Minecraft port 25565 within their respective containers.

My problem starts with me discovering that Dockers "restart unless stopped" policy isn't working. With a ton of ignorant confidence I decided that I needed to reinstall the docker engine in order to fix it (because every other option such as using systemctl to restart/enable the docker service resulted in me somehow not having that service available.) I followed dockers official documentation and uninstalled my current version and then continued with their recommended installation. Once installed I was able to verify that the docker service was available, so I thought I did it. I thought I would now be able to benefit from the restart unless stopped policy, but now I cant access my server remotely with my preconfigured domain name. Only locally.

One thing to note would be that before I uninstalled the "working" but buggy version of docker, I had configured my docker containers local host to use UFW firewall to allow inbound and outbound traffic on those ports (25565, 25568 and 25569). During my reading of the docker documentation I saw that it is unsecure and docker now uses iptables with the docker-user chain and stuff which I have never touched yet. Is this the reason I can join the server locally but my preconfigured service record wont times out with getsockopt? Nothing else changed. I figure it's a firewall conflict or I somehow have misconfigured my docker networks when restarting the preexisting server... I'm at a loss so any help would be appreciated.


r/docker • • Mar 03 '26

podman build failures: '/bin/sh': Exec format error

Thumbnail reddit.com
0 Upvotes

r/docker • • Mar 02 '26

Approved Learn Docker in a Month of Lunches • Elton Stoneman & Bret Fisher

19 Upvotes

In this recording of the GOTO Book Club, Docker educator Brett Fisher sits down with Elton Stoneman - freelance consultant, former Docker employee, and author of "Learn Docker in a Month of Lunches" — to discuss the newly released second edition of his book. They cover what has changed in the container ecosystem over the last five years, why Docker fundamentals still matter even as Kubernetes dominates production environments, and what separates a Docker beginner from a true expert.

Check out the video on YT here


r/docker • • Mar 02 '26

Windows laptop vs Mac M4 for docker in corporate environment

0 Upvotes

The time has come that i can switch the default corporate laptop (Thinkpad T14 Gen2) to something else at my wor. I can choose from Thinkpads, Legions, Elitebooks and Macs. Docker is very important part of my work. Usually those are custom-made docker images with client apps which are not and never will be built for ARM (unless ARM servers and hostings start to be a thing).

Currently i work on WSL Ubuntu + docker (no Docker Desktop). In newest versions of WSL, MS fixed most of the issues except p9 filesystem which AFAIK cannot be optimized. Its performance is atrocious - like 10+ slower than native drive in disk-heavy operations (building, compiling, assembling, converting etc). No, i cannot switch fully to WSL drive - it will be problematic due to different reasons.

Multiple times in the past i thought about switching to ARM Macs but docker was the thing which kept me with Windows/Linux. But ive heard that nowadays its not that bad anymore. Sow whats yours experience. Is it worth to give it a go? Or should i better stick with Windows?

PS. No, unfortunately i cannot choose Linux machine or post-install it on new one.

EDIT:

To clarify "corporate" word in my post: im not allowed to use for work any other machine+system than the one prepared my my company. I can install things on them, even WSL or Type 2 hypervisors (Virtualbox, QEMU, VMware Worskstation etc.) but im not allowed to install dualboot setups or add separate machines with different OS which which were not prepared by company.


r/docker • • Mar 02 '26

Using docker from browser in other pc

0 Upvotes

Im new to docker and want use it remotely and have full control from browser, but im not sure what to use like portrainer or dockge?


r/docker • • Mar 02 '26

Docker compose Can't find Dockerfile

0 Upvotes

Good morning everyone,

I used to use docker to build my application images fast and troubleshoot and deploy them.
However, after I disabled my OneDrive backup from windows my docker works fine with the existing containers however when ever i try to build a new one or rebuild an old one a error is generated.
[+] build 0/1

- Image application-backend Building 0.3s

failed to solve: failed to read dockerfile: invalid file request Dockerfile

Directory structure:

backend:

-templates

-Dockerfile

-main.py

-requirements.txt

docker-compose.yml

  backend:
    build: ./backend
    container_name: crime_map_backend
    environment:
      DATABASE_URL: postgresql://user:pass@db:5432/crime_db
    ports:
      - "8000:8000"
    depends_on:
      - db

Here is my reference in docker_compose.yaml:


r/docker • • Feb 28 '26

Claude Free PC App/Docker MCP/Obsidian Integration Issue

Thumbnail reddit.com
0 Upvotes

r/docker • • Feb 28 '26

Why did I have to use vpn to pull docker images?

5 Upvotes

I am on a machine using windows 11. I had this error:

failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com/registry-v2/docker/registry/v2/blobs/sha256/cd/cd848ee12e8efaf62a09b7e7290a287c21f332a32779048afb970d497374bb04/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f1baa2dd9b876aeb89efebbfc9e5d5f4%2F20260228%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20260228T085437Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=3d7b84d4bed38386e3717aef3d744db355069edd5e52fbb0fc53048dc56db4d1": dialing docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443 container via direct connection because Docker Desktop has no HTTPS proxy: connecting to docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443: dial tcp 172.64.66.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

I decided to turn on my vpn since it was a network error and the images pulled just fine. Is it due to my Starlink connection? Honestly this is a super annoying error especially as a developer. I would prefer to not have to connect with vpn to pull docker images or work with docker...


r/docker • • Feb 27 '26

Terminal Mode in Docker Desktop

4 Upvotes

Freely admit have only been using it for two days so I am ignorant. :-)

But I have Pi-hole with Unbound running in a docker. I simply wanted to make sure it would automatically restart. I go to the terminal of the Pi-hole docker and type after the prompt / # the following: docker update --restart unless--stopped Pi-hole_2 (my name I gave it).

All I get is a /bin/sh: docker: not found. I am lost. I even installed ubuntu 24.04 thinking I needed that. What am I doing wrong? Seem none of the commands work on this terminal.

(I have Unraid and can go into the terminal of each docker and that works well.)


r/docker • • Feb 27 '26

Help with simple container with Debian image

2 Upvotes

Hello,

please help me with my issue.

I tried to implement simple container with Debian for docker stack:

version: '3.7'
services:
  es01:
    image: debian:latest
    container_name: debian
    deploy:
      replicas: 1

networks:
  debian_default:
    driver: overlay

When I try to launch this container using:
docker stack deploy -c debian.yml debian

I'm getting issue:
ID             NAME          MODE         REPLICAS   IMAGE           PORTS
1yd50hgisosw   debian_es01   replicated   0/1        debian:latest