简体   繁体   中英

Docker-compose invalid bind mount spec “/rootfs:ro”: invalid volume specification

I'm following the installation steps from dockprom but getting this error:

ERROR: for cadvisor Cannot create container for service cadvisor: invalid bind mount spec "/rootfs:ro": invalid volume specification: '/rootfs:ro' ERROR: Encountered errors while bringing up the project.

I added environment variable "COMPOSE_CONVERT_WINDOWS_PATHS=1" to docker-compose.yml but this doesn't help.

docker 17.03.1-ce-win5 (10743) windows 10

Thanks in advance !

In docker-compose.yml for cadvisor just replace

volumes:
  - /:/rootfs:ro

with

volumes:
  - c:\:/rootfs:ro

For me it works:

grafana is up-to-date
nodeexporter is up-to-date
alertmanager is up-to-date
prometheus is up-to-date
Creating cadvisor

C:\docker-playground\dockprom>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM