-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
librenms docker-compose.yml doesn't work on Windows (10) #45
Comments
@xorr0 I don't provide support for Windows for this Docker image but thank you for your report. I think this will help Windows users. |
Tried this on W10 server and the smtp one keeps crashing or restarting. |
The default
docker-compose.yml
in theexamples
folder does NOT work on Windows (10). When runningdocker-compose up
it errors out for every volume specification in thedocker-compose.yml
file withCannot create container for service ${SERVICE_NAME}: invalid volume specification
Here's just one of the errors, it happens with all of the "volume" configs in the
docker-compose.yml
file:I ran into this exact same issue with another project, and filed an issue
The FIX is two-fold, as reported in the docker-compose issues #4240:
COMPOSE_CONVERT_WINDOWS_PATHS=1
in the specifiedMicrosoft.Powershell_profile.ps1
scriptdocker-compose.yml
in the librenms-dockerexamples
folder, the following worked perfectly for me (note: I added theports
section to each service container so I could easily modify the published (windows host) port, it had no adverse affect by leaving the port specifications there. Ultimately, it's just more verbose):The text was updated successfully, but these errors were encountered: