6.docker的私用镜像仓库registry

docker方式启动镜像仓库

/ # cat /etc/docker/registry/config.yml 
version: 0.1
log:
  fields:
    service: registry
storage:
  cache:
    blobdescriptor: inmemory
  filesystem:
    rootdirectory: /var/lib/registry
http:
  addr: :5000
  headers:
    X-Content-Type-Options: [nosniff]
health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3
/ # [root@localhost ~]# docker run -it --rm --name jj registry:2 /bin/sh

猜你喜欢

转载自www.cnblogs.com/leleyao/p/10499302.html
今日推荐