Invalid mount config for type "bind" when previewing campaign
Created by: evanweible-wf
I hit this error when trying to preview a campaign locally on my Mac. The campaign spec uses a docker container that I've built locally and is pretty simple. I tried -clear-cache
with no effect. Then I tried -cache /tmp/sg
, which got me to past this error.
CLI version:
$ src version
Current version: 3.22.4
Recommended Version: 3.22.4
Local dockerfile:
FROM google/dart:2.7
ADD pkg/ /pkg/
RUN pub global activate -spath /pkg/pubspec_codemod
Command output:
src campaigns preview -f campaigns/example/upgrade_package_test/campaign.yaml [13:33:50]
✅ Parsing campaign spec
✅ Resolving namespace
✅ Preparing container images
✅ Resolved repositories
✅ Executing steps in 1 repositories
│
└── github.com/Workiva/fluri docker: Error response from daemon: invalid mount config for type "bind": bind source path does n... 1s
❌ Error:
github.com/Workiva/fluri:
run: pubspec_codemod override test 2.0.0 -f test
container: pubspec_codemod:latest
standard error:
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /host_mnt/Users/evanweible/Library/Caches/sourcegraph/campaigns/workspace-github.com-Workiva-fluri832796938.
See 'docker run --help'.
Command failed with exit code 125.
Log: /tmp/changeset-github.com-Workiva-fluri.102271127.log
Log file:
2020-12-11T13:33:57.0437-08:00 [Step 1] run: "pubspec_codemod override test 2.0.0 -f test", container: "pubspec_codemod:latest"
2020-12-11T13:33:57.043793-08:00 [Step 1] full command: "docker run --rm --init --cidfile /tmp/github.com-Workiva-fluri-container-id426444001 --workdir /work --mount type=bind,source=/Users/evanweible/Library/Caches/sourcegraph/campaigns/workspace-github.com-Workiva-fluri832796938,target=/work --mount type=bind,source=/tmp/138660044,target=/tmp/tmp.xRq7MDtHO7,ro --entrypoint /bin/bash -- sha256:1ce902ef018a934a0e8d97cdd01c55f41a6193438fca91576b88fb23d61002f6 /tmp/tmp.xRq7MDtHO7"
2020-12-11T13:33:57.319393-08:00 stderr | docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /host_mnt/Users/evanweible/Library/Caches/sourcegraph/campaigns/workspace-github.com-Workiva-fluri832796938.
2020-12-11T13:33:57.319442-08:00 stderr | See 'docker run --help'.
2020-12-11T13:33:57.31946-08:00 stderr |
2020-12-11T13:33:57.32479-08:00 [Step 1] took 281ms; error running Docker container: exit status 125