Skip to content

Job API socket mounting prevents use of plugin on OSX via Docker Desktop #282

@mipearson

Description

@mipearson

Version 5.12 with fix #275 appears to stop the docker plugin from working on OSX via Docker Desktop as bind mounting sockets between Linux/OSX isn't supported, and there doesn't seem to be a way to disable this functionality in the plugin settings.

$ docker run -t -i --rm --init --volume /opt/homebrew/var/buildkite-agent/builds/<redacted>/mp-test/buildkite-practical-example:/workdir --workdir /workdir --env BUILDKITE_AGENT_JOB_API_SOCKET --env BUILDKITE_AGENT_JOB_API_TOKEN --volume /Users/mp/.buildkite-agent/sockets/job-api/65031-30866.sock:/Users/mp/.buildkite-agent/sockets/job-api/65031-30866.sock <redacted>
  | 2025-02-11 11:14:28 UTC | docker: Error response from daemon: error while creating mount source path '/host_mnt/Users/mp/.buildkite-agent/sockets/job-api/65031-30866.sock': mkdir /host_mnt/Users/mp/.buildkite-agent/sockets/job-api/65031-30866.sock: operation not supported.

Reverting to version 5.11 appears to avoid this issue and the plugin works as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions