|
⇤ ← Revision 1 as of 2017-11-01 06:31:50
Size: 1213
Comment:
|
← Revision 2 as of 2017-11-01 06:32:20 ⇥
Size: 1239
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Line 9: | Line 10: |
| Line 13: | Line 15: |
| Line 16: | Line 19: |
| Line 20: | Line 24: |
| Line 21: | Line 26: |
| Line 22: | Line 28: |
| Line 23: | Line 30: |
| Line 24: | Line 32: |
| Line 25: | Line 34: |
| Line 26: | Line 36: |
| Line 27: | Line 38: |
| Line 31: | Line 43: |
| Line 32: | Line 45: |
| Line 33: | Line 47: |
Describe dockerCmd here.
following are how to run puppet, nagios and docker registry in docker:
Start a container from the image for registry:
docker run -d -p 5000:5000 --restart=always -e STORAGE_PATH=/registry -v /registry:/tmp/registry --name ourlocalregistry <image ID, e.g.6ec6e5fdba37>
If we already have the container and it is stopped we just need to start it:
docker start ourlocalregistry
Start puppet container from the image:
docker run -d -it --net=host <image ID, e.g. ffd6477b4b95>
If we already have the container and it is stopped we just need to start it:
docker start fervent_carson
Make a image from container and push it to our local registry:
e.g. nagios
docker ps
docker commit <container ID> <image name e.g. nagios>
docker images (find out the image id of nagios image)
docker tag <image ID> <registry ip or hostname>:5000/nagios
(e.g. : docker tag 3ea5d6f3e45f li823-33.members.linode.com:5000/nagios)
docker push <registry ip or hostname>:5000/nagios
(e.g. : docker push li823-33.members.linode.com:5000/nagios)
use:
curl -X GET http://<your registry hostname or IP>:5000/v2/_catalog
to verify if the images were pushed into the registry.
