forked from fortestonly/fortest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_registry.pmx
More file actions
61 lines (44 loc) · 1.93 KB
/
docker_registry.pmx
File metadata and controls
61 lines (44 loc) · 1.93 KB
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
---
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: registry_latest
source: registry:latest
type: Default
ports:
- host_port: '5000'
container_port: '5000'
proto: TCP