-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Unable to push image on non 80 port
resolves: #88
- Loading branch information
Showing
8 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Example for issue #88 | ||
|
||
When the docker registry ui is used as a proxy and its port is not 80, we can't push images. | ||
To fix that, I added the correct Host header in the proxy_set_header. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 0.1 | ||
log: | ||
fields: | ||
service: registry | ||
storage: | ||
cache: | ||
blobdescriptor: inmemory | ||
filesystem: | ||
rootdirectory: /var/lib/registry | ||
delete: | ||
enabled: true | ||
http: | ||
addr: :5000 | ||
headers: | ||
X-Content-Type-Options: [nosniff] | ||
Access-Control-Allow-Origin: ['*'] | ||
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE'] | ||
Access-Control-Expose-Headers: ['Docker-Content-Digest'] | ||
health: | ||
storagedriver: | ||
enabled: true | ||
interval: 10s | ||
threshold: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '2' | ||
|
||
services: | ||
registry-srv: | ||
image: registry:latest | ||
restart: always | ||
volumes: | ||
- storage:/var/lib/registry | ||
- ./config.yml:/etc/docker/registry/config.yml:ro | ||
networks: | ||
- registry-ui-net | ||
container_name: registry-srv | ||
|
||
registry-ui: | ||
image: joxit/docker-registry-ui:static | ||
restart: always | ||
ports: | ||
- 8080:80 | ||
environment: | ||
- REGISTRY_TITLE=Private Docker Registry | ||
- REGISTRY_URL=http://registry-srv:5000 | ||
- DELETE_IMAGES=true | ||
depends_on: | ||
- debugproxy | ||
networks: | ||
- registry-ui-net | ||
container_name: registry-ui | ||
|
||
networks: | ||
registry-ui-net: | ||
|
||
volumes: | ||
storage: | ||
driver: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters