Docker Ecosystem: Part V - Docker Registry
-
Upload
mario-j-inga-cahuana -
Category
Software
-
view
271 -
download
0
Transcript of Docker Ecosystem: Part V - Docker Registry
ProblemaY si quiero images privados?
Consumo excesivo de la red
Mantenimiento de mis images
Automatizacion de build images
Docker RegistryIniciar registry:
$ docker run -d -p 5000:5000 --name registry registry:2
$ docker pull ubuntu
$ docker tag ubuntu localhost:5000/myfirstimage
$ docker push localhost:5000/myfirstimage
$ docker rmi localhost:5000/myfirstimage
$ docker pull localhost:5000/myfirstimage
$ docker images|grep localhost
Docker Registry - config.ymlversion: 0.1log: fields: service: registrystorage: cache: layerinfo: inmemory filesystem: rootdirectory: /var/lib/registryhttp: addr: :5000 headers: X-Content-Type-Options: [nosniff]health: storagedriver: enabled: true interval: 10s threshold: 3
Registry - docker-compose.ymlversion: '2'services: registry: container_name: restart: always image: registry:2 ports: - 5000:5000 volumes: - ./config.yml:/etc/docker/registry/config.yml - ./data:/var/lib/registry