Open logerror opened 2 years ago
What is your registry? Can you check its configuration?
What configurations should I check?
It depends on what registry service you are using
docker distribution
Can I provide other helpful information
You can provide startup commands and configuration information
config
version: 0.1
log:
level: debug
fields:
service: registry
environment: development
hooks:
- type: mail
disabled: true
levels:
- panic
options:
smtp:
addr: mail.example.com:25
username: mailuser
password: password
insecure: true
from: sender@example.com
to:
- errors@example.com
storage:
delete:
enabled: true
cache:
blobdescriptor: redis
filesystem:
rootdirectory: /var/lib/registry
maintenance:
uploadpurging:
enabled: false
http:
addr: :5000
debug:
addr: :5001
prometheus:
enabled: true
path: /metrics
headers:
X-Content-Type-Options: [nosniff]
redis:
addr: localhost:6379
pool:
maxidle: 16
maxactive: 64
idletimeout: 300s
dialtimeout: 10ms
readtimeout: 10ms
writetimeout: 10ms
notifications:
events:
includereferences: true
endpoints:
- name: local-5003
url: http://localhost:5003/callback
headers:
Authorization: [Bearer <an example token>]
timeout: 1s
threshold: 10
backoff: 1s
disabled: true
- name: local-8083
url: http://localhost:8083/callback
timeout: 1s
threshold: 10
backoff: 1s
disabled: true
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
start cmd
registry serve config.yml
but i think the important thing is not server config , mya be docker cli or docker daemon
Description i have login succeed with the insecure registry, but push image return authentication required,
auth with jwt token. and get auth return right token.
i make tcpdump find the http patch request without authentication header.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected: docke push succeed
Additional information you deem important (e.g. issue happens only occasionally): the result of curl -v host/v2/
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.): ubuntu