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.
