私有 docker 注册表的设置通知
Setup notification for private docker registry
我正在尝试为我的私人 docker 注册表设置通知。但是我从 docker 撰写文件
中收到以下错误
PS C:\mydockerregistry> docker-compose up
ERROR: The Compose file '.\docker-compose.yml' is invalid because:
Unsupported config option for notifications: 'endpoints'
这是我的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 文件,而是进入 docker 配置文件
查看示例配置文件 https://github.com/docker/distribution/blob/master/cmd/registry/config-example.yml
文档:
https://docs.docker.com/registry/configuration/#example-development-configuration
我正在尝试为我的私人 docker 注册表设置通知。但是我从 docker 撰写文件
中收到以下错误PS C:\mydockerregistry> docker-compose up
ERROR: The Compose file '.\docker-compose.yml' is invalid because: Unsupported config option for notifications: 'endpoints'
这是我的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 文件,而是进入 docker 配置文件 查看示例配置文件 https://github.com/docker/distribution/blob/master/cmd/registry/config-example.yml 文档: https://docs.docker.com/registry/configuration/#example-development-configuration