Last active
March 5, 2017 10:42
-
-
Save emj365/771562d76e431ae84f7884f4dd516df5 to your computer and use it in GitHub Desktop.
docker registry
This file contains hidden or 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
version: '2.1' | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- "127.0.0.1:5000:5000" | |
volumes: | |
- ./data:/var/lib/registry | |
ui: | |
image: konradkleine/docker-registry-frontend:v2 | |
depends_on: | |
- registry | |
links: | |
- registry:registry | |
environment: | |
- ENV_DOCKER_REGISTRY_HOST=registry | |
- ENV_DOCKER_REGISTRY_PORT=5000 | |
ports: | |
- "127.0.0.1:8080:80" |
This file contains hidden or 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
# doesn't work on mac os when exec "docker pull localhost:5000/foo/bar" | |
ssh -NL 5000:127.0.0.1:5000 <user>@<registry-host> -vv |
This file contains hidden or 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
ssh -NL 8080:127.0.0.1:8080 <user>@<registry-host> -vv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment