安装私人dockerregistry的通知

我正在尝试为我的私人dockerregistry设置通知。 但是我从泊坞窗撰写文件得到以下错误

PS C:\ mydockerregistry> docker-up up

错误:撰写文件'。\ docker-compose.yml'是无效的,因为:不支持的通知configuration选项:'端点'

这是我的docker撰写文件

registry: restart: always image: registry:2 ports: - 5000:5000 notifications: endpoints: - name: alistener url: https://requestb.in/13yg1rj1 timeout: 500ms threshold: 5 backoff: 1s 

我采取的做法是错误的。 通知不会进入docker-compose文件,而是dockerconfiguration文件请参阅示例configuration文件https://github.com/docker/distribution/blob/master/cmd/registry/config-example.yml文档: https:// docs。 docker.com/registry/configuration/#example-development-configuration