-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Windows 11 Enterprise
Docker Desktop 4.18.0 (104112)
Docker integrated into WSL2 Linux Install
From within WSL2 Debian linux:
traver@abcwhyme:~$ docker run -d --name yacht_api --restart unless-stopped -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock -v /config:yacht_data ghcr.io/selfhostedpro/yacht-api:main
docker: Error response from daemon: invalid volume specification: '/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Debian/01d0ea696869632ca69da251f24e240d02568620b21f5f327df24ca685cef5a1:yacht_data': invalid mount config for type "bind": invalid mount path: 'yacht_data' mount path must be absolute.
See 'docker run --help'.
From Window Command:
PS C:\Users\trave> docker run -d --name yacht_api --restart unless-stopped -p 8001:3000 -v /var/run/docker.sock:/var/run/docker.sock -v /config:yacht2 ghcr.io/selfhostedpro/yacht-api:main
docker: Error response from daemon: invalid volume specification: '/config:yacht2': invalid mount config for type "bind": invalid mount path: 'yacht2' mount path must be absolute.
See 'docker run --help'.
PS C:\Users\trave> docker run -d --name yacht_api --restart unless-stopped -p 8001:3000 -v /var/run/docker.sock:/var/run/docker.sock -v config:yacht2 ghcr.io/selfhostedpro/yacht-api:main
docker: Error response from daemon: invalid volume specification: 'config:yacht2': invalid mount config for type "volume": invalid mount path: 'yacht2' mount path must be absolute.
See 'docker run --help'.
PS C:\Users\trave> docker volume create yacht_data
yacht_data
PS C:\Users\trave>

