golang-docker-example icon indicating copy to clipboard operation
golang-docker-example copied to clipboard

docker-compose.yml tries to mount a volume for the agent without regard to its actual location

Open cailyoung opened this issue 6 years ago • 0 comments
trafficstars

System info: macOS 10.14 Docker Desktop

Steps to reproduce:

  1. Install buildkite-agent on macOS
  2. Click the 'Add to Buildkite' link on this repo
  3. Trigger a build

Expected result: Build succeeds!

Actual result:

$ docker-compose -f docker-compose.yml -p buildkite579c76232f884d959ce27d837d87596d run --name buildkite579c76232f884d959ce27d837d87596d_app_build_3 --rm app /bin/sh -e -c ./scripts/test.sh
--
  | Error response from daemon: Mounts denied:
  | The path /usr/bin/buildkite-agent
  | is not shared from OS X and is not known to Docker.

The macOS install of the agent is not in the folder /usr/bin/, nor does it seem like the mount is actually required for this demo to work; I removed it from the YAML and the pipeline still runs fine.

Would you like a PR with this change? https://github.com/cailyoung/golang-docker-example/commit/77bafde28ca435a7a46cd84aa5cfe2ed4dfb5428

cailyoung avatar Oct 10 '19 10:10 cailyoung