#
http://hub.docker.com
docker login
cat ~/dockercfg
docker images
docker tag test test/test
docker push test/test
docker search postgres
###
node.js
FROM node:0.12.6
RUN mkdir -p /usr/src/app
WROKDIR /usr/src/app
ONBUILD COPY oackage.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app
CMD [ "npm" , "start" ]
docker pull registry:2
docker run -d -p 5000:5000 registry:2
curl -i http://localhost:5000/v2/
docker tag busybox localhost:5000/busy
docker push localhost:5000/busy
cat /etc/default/docker
DOCKER_OPTS="--insecure-registry localhost:5000"
systemctl restart docker
curl http://localhost:5000/v2/_catalog
docker tag busybox localhost:5000/busy1
docker push localhost:5000/busy1
curl http://localhost:5000/v2/_catalog
curl http://localhost:5000/v2/busy1/manifests/latest
curl http://localhost:5000/v2/busy1/tags/list
docker tag busybox localhost:5000/busy1:foobar
docker push localhost:5000/busy1/tags/list
docker pulll test/test
post-commit
webhook
vim ./.git/hooks/post-commit
#!/bin/bash
tag=`git log -1 HEAD --format="%h"`
docker build -t flask:$tag /home/sebgoa/dockbook/examples/flask
git commit -m "update"
docker images
webhook
Conduit