In the new version of Docker for Windows, 18.03.0-ce-win59, Registrator no longer works.
This may have to do with /var/run/docker.sock no longer being available?
The small Docker Compose file below fails every time, but it used to work. I have searched forums and support sites but cannot find the solution. I do not know whether Registrator is being very actively supported. It seems that the support for Windows is minimal.
Any ideas would be much appreciated. We have been using Registrator and Consul for an open-source Docker-based system, and it has worked well until now.
version: ‘3’
services:
consul:
command: -server -bootstrap-expect 1
image: progrium/consul:latest
ports:
- 8300:8300
- 8400:8400
- 8500:8500
- 8600:53/udp
registrator:
command: -internal consul://consul:8500
image: gliderlabs/registrator:latest
links:
- consul
volumes: - /var/run/docker.sock:/tmp/docker.sock
Error message:
ERROR: for app_registrator_1 Cannot create container for service registrator: b’Mount denied:\nThe source path “\var\run\docker.sock:/tmp/docker.sock”\nis not a valid Windows path’
ERROR: for registrator Cannot create container for service registrator: b’Mount denied:\nThe source path “\var\run\docker.sock:/tmp/docker.sock”\nis not a valid Windows path’
ERROR: Encountered errors while bringing up the project.
