-
Notifications
You must be signed in to change notification settings - Fork 94
/
docker_registry_mrsmith.pmx
65 lines (48 loc) · 2.01 KB
/
docker_registry_mrsmith.pmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
name: Docker Registry
description: Your own Docker registry
keywords: docker, registry
type: Default
documentation: |-
# Docker Registry
Your personal private [docker registry](https://github.com/docker/docker-registry) inside based on docker, docker management tool [Panamax](http://panamax.io/)!
## System Requirements
* Computer - ✓
* Panamax - ✓
It seems that you have already installed Panamax on your computer;)
## Setup
Just click on the button "Run Image".
## Post-Run Instructions
Docker Registry can run in several flavors. The flavor of that template is `dev`. It is optimal for local setup.
More info can be found in the [documentation](https://github.com/docker/docker-registry#configuration-flavors)
## Port-Forwarding
If using Virtual Box, use the following command in your local machine's terminal window to create the port forwarding rule:
```
VBoxManage controlvm panamax-vm natpf1 registry,tcp,,5000,,5000
```
Where, `registry` is the friendly name of the rule, tcp is the protocol.
You can also use [these wiki instructions](https://github.com/CenturyLinkLabs/panamax-ui/wiki/How-To%3A-Port-Forwarding-on-VirtualBox) to setup port forwarding.
## Usage
To push to or pull from your own registry, you just need to set the URL to your private registry as the username.
First tag it accordingly and then push it. Assuming your registry is listening on localhost port 5000:
```
$ docker tag mahnunchik/nodejs-runtime localhost:5000/nodejs-runtime
$ docker push localhost:5000/nodejs-runtime
```
## Resources
* [Docker](https://docker.com/)
* [Docker Registry](https://github.com/docker/docker-registry)
* [Panamax](http://panamax.io/)
* [HOW TO USE YOUR OWN REGISTRY](https://blog.docker.com/2013/07/how-to-use-your-own-registry/)
images:
- name: Docker Registry
source: registry:0.8.0
category: Registry
type: Default
ports:
- host_port: '5000'
container_port: '5000'
proto: TCP
environment:
- variable: SETTINGS_FLAVOR
value: dev