.河南快三开奖—官方网址22270.COM鈥擠ocker Machine

绠浠

.河南快三开奖—官方网址22270.COM鈥擠ocker Machine 鏄竴绉嶅彲浠ヨ鎮ㄥ湪铏氭嫙涓绘満涓婂畨瑁 .河南快三开奖—官方网址22270.COM鈥擠ocker 鐨勫伐鍏凤紝骞跺彲浠ヤ娇鐢 docker-machine 鍛戒护鏉ョ鐞嗕富鏈恒

.河南快三开奖—官方网址22270.COM鈥擠ocker Machine 涔熷彲浠ラ泦涓鐞嗘墍鏈夌殑 docker 涓绘満锛屾瘮濡傚揩閫熺殑缁 100 鍙版湇鍔″櫒瀹夎涓 docker銆

.河南快三开奖—官方网址22270.COM鈥擠ocker Machine 绠$悊鐨勮櫄鎷熶富鏈哄彲浠ユ槸鏈轰笂鐨勶紝涔熷彲浠ユ槸浜戜緵搴斿晢锛屽闃块噷浜戯紝鑵捐浜戯紝AWS锛屾垨 DigitalOcean銆

浣跨敤 docker-machine 鍛戒护锛屾偍鍙互鍚姩锛屾鏌ワ紝鍋滄鍜岄噸鏂板惎鍔ㄦ墭绠′富鏈猴紝涔熷彲浠ュ崌绾 .河南快三开奖—官方网址22270.COM鈥擠ocker 瀹㈡埛绔拰瀹堟姢绋嬪簭锛屼互鍙婇厤缃 .河南快三开奖—官方网址22270.COM鈥擠ocker 瀹㈡埛绔笌鎮ㄧ殑涓绘満杩涜閫氫俊銆


瀹夎

瀹夎 .河南快三开奖—官方网址22270.COM鈥擠ocker Machine 涔嬪墠浣犻渶瑕佸厛瀹夎 .河南快三开奖—官方网址22270.COM鈥擠ocker銆

.河南快三开奖—官方网址22270.COM鈥擠ocker Mechine 鍙互鍦ㄥ绉嶅钩鍙颁笂瀹夎浣跨敤锛屽寘鎷 Linux 銆丮acOS 浠ュ強 windows銆

Linux 瀹夎鍛戒护

$ base=http://github.com/docker/machine/releases/download/v0.16.0 &&
  curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
  sudo mv /tmp/docker-machine /usr/local/bin/docker-machine &&
  chmod +x /usr/local/bin/docker-machine

macOS 瀹夎鍛戒护

$ base=http://github.com/docker/machine/releases/download/v0.16.0 &&
  curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/usr/local/bin/docker-machine &&
  chmod +x /usr/local/bin/docker-machine

Windows 瀹夎鍛戒护

濡傛灉浣犳槸 Windows 骞冲彴锛屽彲浠ヤ娇鐢 Git BASH锛屽苟杈撳叆浠ヤ笅鍛戒护锛

$ base=http://github.com/docker/machine/releases/download/v0.16.0 &&
  mkdir -p "$HOME/bin" &&
  curl -L $base/docker-machine-Windows-x86_64.exe > "$HOME/bin/docker-machine.exe" &&
  chmod +x "$HOME/bin/docker-machine.exe"

鏌ョ湅鏄惁瀹夎鎴愬姛锛

$ docker-machine version
docker-machine version 0.16.0, build 9371605

浣跨敤

.河南快三开奖—官方网址22270.COM鏈珷閫氳繃 virtualbox 鏉ヤ粙缁 docker-machine 鐨勪娇鐢ㄦ柟娉曘傚叾浠栦簯鏈嶅姟鍟嗘搷浣滀笌姝ゅ熀鏈竴鑷淬傚叿浣撳彲浠ュ弬鑰冩瘡瀹舵湇鍔″晢鐨勬寚瀵兼枃妗c

1銆佸垪鍑哄彲鐢ㄧ殑鏈哄櫒

鍙互鐪嬪埌鐩墠鍙湁杩欓噷榛樿鐨 default 铏氭嫙鏈恒

$ docker-machine ls

2銆佸垱寤烘満鍣

鍒涘缓涓鍙板悕涓 test 鐨勬満鍣ㄣ

$ docker-machine create --driver virtualbox test
  • --driver锛氭寚瀹氱敤鏉ュ垱寤烘満鍣ㄧ殑椹卞姩绫诲瀷锛岃繖閲屾槸 virtualbox銆

3銆佹煡鐪嬫満鍣ㄧ殑 ip

$ docker-machine ip test

4銆佸仠姝㈡満鍣

$ docker-machine stop test

5銆佸惎鍔ㄦ満鍣

$ docker-machine start test

6銆佽繘鍏ユ満鍣

$ docker-machine ssh test

docker-machine 鍛戒护鍙傛暟璇存槑

  • docker-machine active锛氭煡鐪嬪綋鍓嶆縺娲荤姸鎬佺殑 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満銆

    $ docker-machine ls
    
    NAME      ACTIVE   DRIVER         STATE     URL
    dev       -        virtualbox     Running   tcp://192.168.99.103:2376
    staging   *        digitalocean   Running   tcp://203.0.113.81:2376
    
    $ echo $DOCKER_HOST
    tcp://203.0.113.81:2376
    
    $ docker-machine active
    staging
  • config锛氭煡鐪嬪綋鍓嶆縺娲荤姸鎬 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満鐨勮繛鎺ヤ俊鎭
  • creat锛氬垱寤 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満
  • env锛氭樉绀鸿繛鎺ュ埌鏌愪釜涓绘満闇瑕佺殑鐜鍙橀噺
  • inspect锛 浠 json 鏍煎紡杈撳嚭鎸囧畾.河南快三开奖—官方网址22270.COM鈥擠ocker鐨勮缁嗕俊鎭
  • ip锛 鑾峰彇鎸囧畾 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満鐨勫湴鍧
  • kill锛 鐩存帴鏉姝绘寚瀹氱殑 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満
  • ls锛 鍒楀嚭鎵鏈夌殑绠$悊涓绘満
  • provision锛 閲嶆柊閰嶇疆鎸囧畾涓绘満
  • regenerate-certs锛 涓烘煇涓富鏈洪噸鏂扮敓鎴 TLS 淇℃伅
  • restart锛 閲嶅惎鎸囧畾鐨勪富鏈
  • rm锛 鍒犻櫎鏌愬彴 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満锛屽搴旂殑铏氭嫙鏈轰篃浼氳鍒犻櫎
  • ssh锛 閫氳繃 SSH 杩炴帴鍒颁富鏈轰笂锛屾墽琛屽懡浠
  • scp锛 鍦 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満涔嬮棿浠ュ強 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満鍜屾湰鍦颁富鏈轰箣闂撮氳繃 scp 杩滅▼澶嶅埗鏁版嵁
  • mount锛 浣跨敤 SSHFS 浠庤绠楁満瑁呰浇鎴栧嵏杞界洰褰
  • start锛 鍚姩涓涓寚瀹氱殑 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満锛屽鏋滃璞℃槸涓櫄鎷熸満锛岃铏氭嫙鏈哄皢琚惎鍔
  • status锛 鑾峰彇鎸囧畾 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満鐨勭姸鎬(鍖呮嫭锛歊unning銆丳aused銆丼aved銆丼topped銆丼topping銆丼tarting銆丒rror)绛
  • stop锛 鍋滄涓涓寚瀹氱殑 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満
  • upgrade锛 灏嗕竴涓寚瀹氫富鏈虹殑 .河南快三开奖—官方网址22270.COM鈥擠ocker 鐗堟湰鏇存柊涓烘渶鏂
  • url锛 鑾峰彇鎸囧畾 .河南快三开奖—官方网址22270.COM鈥擠ocker 涓绘満鐨勭洃鍚 URL
  • version锛 鏄剧ず .河南快三开奖—官方网址22270.COM鈥擠ocker Machine 鐨勭増鏈垨鑰呬富鏈 .河南快三开奖—官方网址22270.COM鈥擠ocker 鐗堟湰
  • help锛 鏄剧ず甯姪淇℃伅