简体   繁体   中英

How to fix 'Job failed: invalid volume specification' for gitlab-runner exec docker on osx

Getting the error ERROR: Job failed: invalid volume specification when trying to run a .gitlab-ci on osx (10.14.5).

gitlab-runner exec docker build

Complete error:

ERROR: Job failed: invalid volume specification: "/Users/xxx/projects/Kubernetes Test/tasks:/Users/xxx/projects/Kubernetes Test/tasks:ro"

There seems to be a similar problem on Windows , but found nothing for osx.

If anyone runs into similar problems, I fixed this by moving the project from

/Users/xxx/projects/Kubernetes Test/tasks to /Users/xxx/projects/kubernetes-test/tasks

Not a docker expert, but seems that there are issues with spaces in volumes.

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