[Docker Desktop] Error decoding 'Volumes[0] invalid spec: :/shared-volume: empty section between colons
pravesh-kasare opened this issue ยท 7 comments
Checklist
- I've searched through the existing issues and this bug has never been reported before
Subject of the issue
Hi,
recently i tried to configure G3W suite on my windows using docker desktop. G3W admin and client environment were created successfully, but while adding G3W docker suite got the below volume 0 invalid spec error.
i have followed each step suggested in documentation.
#help #docker_desktop
error decoding 'Volumes[0] invalid spec: :/shared-volume: empty section between colons
Steps to reproduce
Environment
- g3w-admin: 3.6
- g3w-client:3.8.5
- browser: edge
- operating system: Windows 11
Link to your project
No response
Additional info
No response
Hi @pravesh-kasare,
from the little I can see, it looks like you are trying to create a dev environment through the Docker Desktop GUI's.
We have no previous experience with them, but that error may be due to the fact that the .env
file (ref: missing WEBGIS_DOCKER_SHARED_VOLUME
variable) is not being automatically loaded in here:
g3w-suite-docker/docker-compose-dev.yml
Lines 67 to 69 in 0fa2794
Please note that the steps to create the development docker container are currently located in here:
g3w-suite-docker/README_DEV.md
Lines 1 to 10 in 0fa2794
Anyway, I suggest you to directly follow g3w-client's dev instructions (which right now are a litte bit more detailed / updated) if you intend to develop something for g3w-suite using a docker container.
๐ Raruto
@pravesh-kasare Docker Desktop Dev Environments (beta) are an undocumented / unsupported method to install g3w-suite..
i have had added shared volume in .env file
Then to create development container (first time only) you need to run the following command within a Windows Terminal (powershell or command prompt):
cd path/to/your/workspace/g3w-suite-docker/
docker compose -f docker-compose-dev.yml up -d
And after that, once it's done, in Docker Desktop you should see something like the following within the Containers tab:
g3w-suite-docker/README_DEV.md
Lines 1 to 10 in 0fa2794
๐ Raruto
can you please check it on my laptop remotely.
loading project: volumes must be a mapping
don't know where things went wrong...
I'll be pedantic, as per g3w-suite@v3.6 the necessary steps to follow to start working via docker are detailed here and here (ie. projects structure, configuration files and other commands to be used from the terminal), other installation methods are not currently supported.
From what little you show, it seems that you are trying to use a your own customized version of the docker-compose-dev.yml
file (and not the default one provided in here).
If not, please create a new issue and provide as much detail as possible in your first comment to allow anyone else trying to understand what you are trying to do (NB: reporting to others your steps-by-step is crucial to understanding what is going wrong).
can you please check it on my laptop remotely.
In this regard, sales department is available at info@gis3w.it for dedicated assistance or installations.
๐ Raruto