当前位置: 代码迷 >> GIS >> 鎼?徐鏈?湴娴嬭瘯鐨凞ocker Registry
  详细解决方案

鎼?徐鏈?湴娴嬭瘯鐨凞ocker Registry

热度:478   发布时间:2016-05-05 06:05:33.0
鎼?缓鏈?湴娴嬭瘯鐨凞ocker Registry

1 涓轰粈涔堥渶瑕丏ocker Registry?

褰撳垱寤轰竴涓狣ocker闀滃儚鏃讹紝姣斿?Redis server, Hipache daemon锛屽笇鏈涙湁涓?畨鍏ㄧ殑鍦版柟鍙?互淇濆瓨瀹冧滑銆傜壒鍒?槸浣犵殑浠g爜鏄??鏈夌殑锛屼笉鎯虫帹閫侀暅鍍忓埌鍏?叡registry銆侱ocker Inc.涓烘?寮?鍙戜簡docker-registry椤圭洰銆傝繖涓?」鐩?繍琛屽ぇ瀹舵帹閫佽嚜宸辩殑闀滃儚鍒板唴閮╮egistry銆?/p>

2 Docker Registry姒傚康

Docker Registry銆傚畠鏄?墍鏈変粨搴擄紙鍖呮嫭鍏辨湁鍜岀?鏈夛級浠ュ強宸ヤ綔娴佺殑涓?ぎRegistry銆俁epositories锛堜粨搴擄級鍙?互琚?爣璁颁负鍠滄?鎴栬?呭儚涔︾?涓?鏍锋爣璁拌捣鏉ャ?侱ocker Registry鏈変笁涓??鑹诧紝鍒嗗埆鏄痠ndex銆乺egistry鍜宺egistry client锛?/p>

2.1 瑙掕壊 1 -- Index聽锛歩ndex聽璐熻矗骞剁淮鎶ゆ湁鍏崇敤鎴峰笎鎴枫?侀暅鍍忕殑鏍¢獙浠ュ強鍏?叡鍛藉悕绌洪棿鐨勪俊鎭???/p>

2.2 瑙掕壊 2 --Registry锛歳egistry鏄?暅鍍忓拰鍥捐〃鐨勪粨搴擄紝鐢盨3銆佷簯鏂囦欢鍜屾湰鍦版枃浠剁郴缁熸彁渚涙暟鎹?簱鏀?寔銆傞?氳繃Index Auth service鐨凾oken鏂瑰紡杩涜?韬?唤璁よ瘉銆?/p>

2.3 瑙掕壊 3 --Registry Client锛欴ocker鍏呭綋registry瀹㈡埛绔?潵璐熻矗缁存姢鎺ㄩ?佸拰鎷夊彇鐨勪换鍔★紝浠ュ強瀹㈡埛绔?殑鎺堟潈銆?br>

3 鏈?湴娴嬭瘯Docker Registry

$ docker pull samalba/docker-registry$ docker run -d -p 5000:5000 samalba/docker-registry$ # let's pull a sample image (or make one ourselves)$ docker pull busybox$ docker tag busybox localhost:5000/busybox$ docker push localhost:5000/busybox

鏌ョ湅缁撴灉锛屽彂鐜板?浜嗕釜localhost:5000/busybox鐨勪粨搴擄細

4 鍙傝?冿細

Docker鍏ラ棬鏁欑▼锛堝洓锛塂ocker Registry - DockOne.io

http://dockone.io/article/104

Deploying your own Private Docker Registry | ActiveState

http://www.activestate.com/blog/2014/01/deploying-your-own-private-docker-registry

  相关解决方案