docker / go-plugins-helpers

Go helper packages to extend the Docker Engine
https://docs.docker.com/engine/extend/plugins/
Apache License 2.0
331 stars 133 forks source link

Authorization plugins don't work on Docker for Mac #97

Closed lox closed 6 years ago

lox commented 6 years ago

I built an example docker plugin using the example of the Authorization api.

I built it with a docker container, so it's a linux binary, unlike #78.

I'd expect all docker operations to fail with an error after setting the default return for AuthZReq and AuthZRes to Allow: false, but nothing happens. I see no log error messages.

I tried adding the -tag nosystemd and it didn't make a different.

See https://github.com/buildkite/docker-buildkite-authorization-plugin for steps to reproduce.

I've also filed an issue at https://github.com/docker/for-mac/issues/2191 in case this is a D4m issue rather than one related to the plugin helpers.

lox commented 6 years ago

Turns out authorization-plugin was needed in the daemon.json apologies for the noise!