Mount Directory from WSL 2


I couldn’t figure out how to mount a directory when the docker is installed within WSL 2. When using WSL 1, I can create a container in portainer with /host_mnt/d/test to /var/www/html for apache server. This method no longer works in WSL 2.

I tried /mnt/d/test, /host_mnt/mnt/d/test as well, both are failed too.

Please advice.

Have you tried this via CLI? IIRC we have never tested Portainer with WSL2 so unsure on support for this