锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲人成网77777色在线播放,亚洲欧美国产国产一区二区三区 ,亚洲高清一区二区三区电影http://m.tkk7.com/paulwong/category/54941.htmlzh-cnSat, 21 Jun 2025 18:45:07 GMTSat, 21 Jun 2025 18:45:07 GMT60鏈鍏?Docker 紲炲櫒闆嗙粨錛岃浣犵殑鏈嶅姟鍣ㄧ灛闂磋搗椋烇紒http://m.tkk7.com/paulwong/archive/2025/06/21/451639.htmlpaulwongpaulwongSat, 21 Jun 2025 15:01:00 GMThttp://m.tkk7.com/paulwong/archive/2025/06/21/451639.htmlhttp://m.tkk7.com/paulwong/comments/451639.htmlhttp://m.tkk7.com/paulwong/archive/2025/06/21/451639.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/451639.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/451639.htmlhttps://mp.weixin.qq.com/s/gtyMdmCqBY7LfdBGUBldSA

paulwong 2025-06-21 23:01 鍙戣〃璇勮
]]>
浠ラ潪root鐢ㄦ埛榪愯dockerhttp://m.tkk7.com/paulwong/archive/2025/06/13/451629.htmlpaulwongpaulwongFri, 13 Jun 2025 08:47:00 GMThttp://m.tkk7.com/paulwong/archive/2025/06/13/451629.htmlhttp://m.tkk7.com/paulwong/comments/451629.htmlhttp://m.tkk7.com/paulwong/archive/2025/06/13/451629.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/451629.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/451629.html
sudo useradd -m paul # 鍒涘緩鐢ㄦ埛騫惰嚜鍔ㄥ緩绔嬪鐩綍
sudo passwd paul # 璁劇疆鐢ㄦ埛瀵嗙爜錛堥渶杈撳叆涓ゆ紜錛?br /> sudo usermod -aG wheel paul # CentOS/RHEL
[root@dev69 ~]$ groupadd docker
[root@dev69 ~]$ usermod -aG docker $USER
[root@dev69 ~]$ reboot
[paul@dev69 ~]$ docker run hello-world


paulwong 2025-06-13 16:47 鍙戣〃璇勮
]]>
瀹夎docker鐗堢殑Nvidia container toolkithttp://m.tkk7.com/paulwong/archive/2025/01/13/451552.htmlpaulwongpaulwongMon, 13 Jan 2025 06:20:00 GMThttp://m.tkk7.com/paulwong/archive/2025/01/13/451552.htmlhttp://m.tkk7.com/paulwong/comments/451552.htmlhttp://m.tkk7.com/paulwong/archive/2025/01/13/451552.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/451552.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/451552.htmlhttps://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installation

paulwong 2025-01-13 14:20 鍙戣〃璇勮
]]>
鍥藉唴緗戠粶鐜瀹夎docker錛媍ontainer toolkithttp://m.tkk7.com/paulwong/archive/2024/08/15/451479.htmlpaulwongpaulwongThu, 15 Aug 2024 02:49:00 GMThttp://m.tkk7.com/paulwong/archive/2024/08/15/451479.htmlhttp://m.tkk7.com/paulwong/comments/451479.htmlhttp://m.tkk7.com/paulwong/archive/2024/08/15/451479.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/451479.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/451479.html鎿嶄綔緋葷粺涓篶entos 9.

鍏堝畨瑁呴┍鍔ㄧ▼搴?/h3>

鍦?a target="_blank">https://www.nvidia.cn/drivers/lookup/ 涓煡鎵懼搴旂殑椹卞姩紼嬪簭涓嬭澆鍒版湰鍦幫紝鍐嶈繍琛?/div>
#鍒囨崲鎴愭枃瀛楃晫闈?br /> sudo systemctl set-default multi-user.target
sudo reboot

sh NVIDIA
-Linux-x86_64-550.107.02.run

#鍒囨崲鎴愬浘褰㈢晫闈?br /> sudo systemctl set-default graphical.target
sudo reboot

瀹夎docker:

yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-engine

yum install -y yum-utils
yum-config-manager --add-repo https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo
sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo

yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo nvidia-ctk runtime configure --runtime=docker

鏀歸暅鍍忓湴鍧錛?/h3>

[paul@paul-pc ~]$ cat /etc/docker/daemon.json
{  
    
"registry-mirrors"[
        "http://xxx.xxx.xxx"
    ]
,
    
"runtimes": {
        
"nvidia": {
            
"args"[],
            
"path""nvidia-container-runtime"
        }
    }
}

瀹夎container-took-kit錛?/h3>

鍦?a target="_blank">https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Rocky&target_version=9&target_type=runfile_local 涓壘鍒板搴旂殑container-took-kit錛屼笅杞藉埌鏈湴錛屽啀榪愯
sh cuda_12.6.0_560.28.03_linux.run

楠岃瘉錛?/h3>

sudo docker run --rm -it --gpus all ubuntu  nvidia-smi
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.107.02             Driver Version: 550.107.02     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 2080 Ti     Off |   00000000:01:00.0  On |                  N/A |
| 62%   36C    P8              4W /  260W |     256MiB /  22528MiB |      1%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA GeForce RTX 2080 Ti     Off |   00000000:02:00.0 Off |                  N/A |
| 64%   35C    P8              5W /  260W |       9MiB /  22528MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2657      G   /usr/libexec/Xorg                              99MiB |
|    0   N/A  N/A      2735      G   /usr/bin/gnome-shell                           38MiB |
|    0   N/A  N/A      3502      G   /usr/lib64/firefox/firefox                    111MiB |
|    1   N/A  N/A      2657      G   /usr/libexec/Xorg                               4MiB |
+-----------------------------------------------------------------------------------------+
鍙傝冨湴鍧錛?/div>


paulwong 2024-08-15 10:49 鍙戣〃璇勮
]]>閮ㄧ講docker鐗堢殑nginxhttp://m.tkk7.com/paulwong/archive/2024/06/19/451449.htmlpaulwongpaulwongWed, 19 Jun 2024 14:03:00 GMThttp://m.tkk7.com/paulwong/archive/2024/06/19/451449.htmlhttp://m.tkk7.com/paulwong/comments/451449.htmlhttp://m.tkk7.com/paulwong/archive/2024/06/19/451449.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/451449.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/451449.html浣跨敤docker compose鎼為厤緗柟渚匡紝閰嶇疆鏀懼湪閰嶇疆鏂囦歡涓紝姣旀斁鍦ㄥ惎鍔ㄥ懡浠ょ洿瑙傘?/div>
docker-compose.yaml

version: '3.8'
services:

  nginx-web: #榪欓噷娉ㄦ剰鍚嶇О闅忎究璧鳳紝浣嗚淇濊瘉鍦╠ocker鐜涓淮涓錛屽惁鍒檇ocker compose down鏃訛紝浼氳鍏ㄥ眬down鎺?br />     volumes:
      - /opt/tool/nginx/data/html:/usr/share/nginx/html:ro #閰嶇疆html鏂囦歡鍦ㄥ涓繪満涓?br />       - /opt/tool/nginx/data/conf/nginx.conf:/etc/nginx/nginx.conf:ro #閰嶇疆閰嶇疆鏂囦歡鍦ㄥ涓繪満涓?br />       - /opt/tool/nginx/data/conf/conf.d/default-web.conf:/etc/nginx/conf.d/default.conf:ro #閰嶇疆閰嶇疆鏂囦歡鍦ㄥ涓繪満涓?br />       - /opt/tool/nginx/data/conf/.htpasswd:/etc/nginx/.htpasswd:ro #閰嶇疆鐧誨綍NGINX鏃惰鐢ㄥ埌鐨勭敤鎴峰悕鍜屽瘑鐮佹枃浠?br />       - /etc/localtime:/etc/localtime:ro #閰嶇疆NGINX涓婄殑鏃墮挓涓庡涓繪満鐩稿悓
      - /opt/tool/nginx/data/log/access.log:/var/log/nginx/access.log #閰嶇疆ACCESS鏂囦歡鍦ㄥ涓繪満涓?br />       - /opt/tool/nginx/data/log/error.log:/var/log/nginx/error.log #閰嶇疆ERROR鏂囦歡鍦ㄥ涓繪満涓?br />     container_name: nginx-web #瀹瑰櫒鍚嶇О錛屽叏灞緇翠竴
    ports:
      - 
"80:80"
    image: nginx:latest
    #image: quay.io/ricardbejarano/nginx
    restart: unless-stopped
 
 鍚姩鍛戒護 start-nginx.sh
cd $(cd `dirname $0`; pwd)
docker compose  -f docker-compose-web.yaml down #鍚姩鍓嶅厛鎶婄浉搴旂殑闀滃儚騫叉帀
docker compose  -f docker-compose-web.yaml up -d  #鍚庡彴鍚姩
login docker鍛戒護login-docker.sh
docker exec -it nginx /bin/bash


paulwong 2024-06-19 22:03 鍙戣〃璇勮
]]>
install docker on Machttp://m.tkk7.com/paulwong/archive/2022/11/11/450856.htmlpaulwongpaulwongFri, 11 Nov 2022 03:07:00 GMThttp://m.tkk7.com/paulwong/archive/2022/11/11/450856.htmlhttp://m.tkk7.com/paulwong/comments/450856.htmlhttp://m.tkk7.com/paulwong/archive/2022/11/11/450856.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/450856.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/450856.html



paulwong 2022-11-11 11:07 鍙戣〃璇勮
]]>RESTful API using Spring Boot 2.3.5http://m.tkk7.com/paulwong/archive/2021/06/17/435898.htmlpaulwongpaulwongThu, 17 Jun 2021 06:16:00 GMThttp://m.tkk7.com/paulwong/archive/2021/06/17/435898.htmlhttp://m.tkk7.com/paulwong/comments/435898.htmlhttp://m.tkk7.com/paulwong/archive/2021/06/17/435898.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435898.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435898.htmlhttps://github.com/sina-sheikholeslami/RESTful-API-using-Spring-Boot

paulwong 2021-06-17 14:16 鍙戣〃璇勮
]]>
How to install Docker on CentOShttp://m.tkk7.com/paulwong/archive/2021/06/17/435897.htmlpaulwongpaulwongThu, 17 Jun 2021 06:15:00 GMThttp://m.tkk7.com/paulwong/archive/2021/06/17/435897.htmlhttp://m.tkk7.com/paulwong/comments/435897.htmlhttp://m.tkk7.com/paulwong/archive/2021/06/17/435897.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435897.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435897.htmlhttps://www.fosslinux.com/42945/how-to-install-docker-on-centos.htm



paulwong 2021-06-17 14:15 鍙戣〃璇勮
]]>
閰嶇疆docker浠撳簱闀滃儚錛屽嵆浣跨敤縐佹湇http://m.tkk7.com/paulwong/archive/2020/09/30/435680.htmlpaulwongpaulwongWed, 30 Sep 2020 07:40:00 GMThttp://m.tkk7.com/paulwong/archive/2020/09/30/435680.htmlhttp://m.tkk7.com/paulwong/comments/435680.htmlhttp://m.tkk7.com/paulwong/archive/2020/09/30/435680.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435680.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435680.html緙栬緫/etc/docker/daemon.json錛屽姞鍏ヤ互涓嬭妭鐐癸細
{
  "registry-mirrors": [
    "https://hub-mirror.c.163.com",
    "https://mirror.baidubce.com"
  ]
}




paulwong 2020-09-30 15:40 鍙戣〃璇勮
]]>
浠ラ潪root鐢ㄦ埛榪愯dockerhttp://m.tkk7.com/paulwong/archive/2020/09/30/435679.htmlpaulwongpaulwongWed, 30 Sep 2020 07:10:00 GMThttp://m.tkk7.com/paulwong/archive/2020/09/30/435679.htmlhttp://m.tkk7.com/paulwong/comments/435679.htmlhttp://m.tkk7.com/paulwong/archive/2020/09/30/435679.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/435679.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/435679.html[root@dev69 ~]$ groupadd docker
[root@dev69 ~]$ usermod -aG docker $USER
[root@dev69 ~]$ reboot
[paul@dev69 ~]$ docker run hello-world

docker 瀹夎錛?br />
[root@dev69 ~]$ yum install -y docker
[root@dev69 ~]$ systemctl enable docker
[root@dev69 ~]$ systemctl start docker



paulwong 2020-09-30 15:10 鍙戣〃璇勮
]]>
MAVEN縐佹湇銆丏OCKER縐佹湇銆丯PM縐佹湇錛屼笓娌誨悇縐嶇鏈?/title><link>http://m.tkk7.com/paulwong/archive/2020/09/30/435678.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Wed, 30 Sep 2020 06:24:00 GMT</pubDate><guid>http://m.tkk7.com/paulwong/archive/2020/09/30/435678.html</guid><wfw:comment>http://m.tkk7.com/paulwong/comments/435678.html</wfw:comment><comments>http://m.tkk7.com/paulwong/archive/2020/09/30/435678.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/paulwong/comments/commentRss/435678.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/paulwong/services/trackbacks/435678.html</trackback:ping><description><![CDATA[Using Nexus 3 as Your Repository – Part 1: Maven Artifacts<br /> <a target="_blank">https://blog.sonatype.com/using-nexus-3-as-your-repository-part-1-maven-artifacts</a><br /> <br /> Using Nexus 3 as Your Repository – Part 2: npm Packages<br /> <a target="_blank">https://blog.sonatype.com/using-nexus-3-as-your-repository-part-2-npm-packages</a><br /> <br /> Using Nexus 3 as Your Repository – Part 3: Docker Images<br /> <a target="_blank">https://blog.sonatype.com/using-nexus-3-as-your-repository-part-3-docker-images</a> <br /><br />寰湇鍔?-浣跨敤Nexus Repository Manager 3.0鎼緩縐佹湁Docker浠撳簱<br /><a target="_blank">https://www.hifreud.com/2018/06/05/02-nexus-docker-repository/</a><img src ="http://m.tkk7.com/paulwong/aggbug/435678.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/paulwong/" target="_blank">paulwong</a> 2020-09-30 14:24 <a href="http://m.tkk7.com/paulwong/archive/2020/09/30/435678.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣跨敤 Docker 鎼緩 Java Web 榪愯鐜http://m.tkk7.com/paulwong/archive/2016/10/15/431893.htmlpaulwongpaulwongSat, 15 Oct 2016 11:57:00 GMThttp://m.tkk7.com/paulwong/archive/2016/10/15/431893.htmlhttp://m.tkk7.com/paulwong/comments/431893.htmlhttp://m.tkk7.com/paulwong/archive/2016/10/15/431893.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/431893.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/431893.html闃呰鍏ㄦ枃

paulwong 2016-10-15 19:57 鍙戣〃璇勮
]]>
涓綃囦笉閿欑殑Docker鍏ラ棬浠嬬粛http://m.tkk7.com/paulwong/archive/2015/10/30/427980.htmlpaulwongpaulwongFri, 30 Oct 2015 04:49:00 GMThttp://m.tkk7.com/paulwong/archive/2015/10/30/427980.htmlhttp://m.tkk7.com/paulwong/comments/427980.htmlhttp://m.tkk7.com/paulwong/archive/2015/10/30/427980.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/427980.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/427980.html鐪嬪埌榪欐爣棰樹綘鍙兘浼氭兂錛岀綉涓婁笉鏄凡緇忔湁寰堝Docker鐨勫叆闂ㄤ粙緇嶄簡涔堬紵鍚屼竴涓富棰樿璁茶繃寰堝嬈★紝榪樻湁娌℃湁蹇呰蹇呰鍐嶈錛熷彲鏄紝鎴戜綋鍐呰繖娣鋒潅鐨勭殑楂樺偛涓庡浐鎵ц櫧鐒惰浜哄帉鎭訛紝浣嗗嵈璁╂垜騫垮彈澶у鐨勬榪庯紝榪欎篃璁╂垜瑙夊緱鎴戝簲璇ユ潵涓鍙戯紙綃囷級錛屽搱鍝堛?nbsp;

涓句竴涓垜閬囧埌鐨勫満鏅紝ELK涓夊墤瀹紝鍗矱lasticsearch銆丩ogstash鍜孠ibana銆傛垜鍙互閫夋嫨鎶婂畠浠洿鎺ュ畨瑁呭湪鎴戠殑MacBook涓婏紝榪欐槸鎴戜富鍔涘紑鍙戞満錛屼絾鏄湪涓婇潰宸茬粡瑁呭ソ涓涓狤lasticsearch浜嗐傛垜涓嶆兂鐮村潖鐜板湪宸叉湁鐨勭幆澧冦傝瑙e喅榪欎釜闂錛岀敤2015騫存椂涓嬫渶鐑棬鐨勮В鍐蟲柟妗堝氨鏄疍ocker浜嗐傚鏋滆繃鍘諱竴騫村叧浜嶥ocker鐨勫悇縐嶇儹闂逛綘閮介敊榪囦簡錛岄偅涔堣緇х畫寰涓嬬湅銆?nbsp;

Docker鍋氱殑浜嬫儏灝辨槸灝嗙殑杞歡闅旂璧鋒潵錛岃瀹冧滑鍗充嬌鍑轟簡闂涔熶笉浼氫簰鐩稿獎鍝嶃傝繖騫朵笉鏄粈涔堟í絀哄嚭涓栫殑鏂版濇兂銆備綘寰堝彲鑳戒細璇村唴鏍告帶鍒剁殑榪涚▼涓嶅氨榪欐牱鐜╀箞錛熸瘡涓涓繘紼嬮兘鏈夎嚜宸辯殑鍐呭瓨絀洪棿錛屽茍涓斿湪涓涓繘紼嬭嚜韜湅鏉ワ紝鍐呭瓨絀洪棿涓庢墍澶勫湪鐨勮綆楁満鐨勫唴瀛樼┖闂存槸涓鏍風殑銆傜劧鑰屽唴鏍告楠椾簡榪涚▼錛屽湪鑳屽悗灝嗗唴瀛樺湴鍧閲嶆柊鏄犲皠鍒頒簡鐪熷疄鐨勫唴瀛樼┖闂翠腑銆傛兂鎯充粖澶╅珮閫熻繍杞鐞嗗櫒錛屼換浣曞湴鏂硅鍒扮殑緋葷粺閮借兘鍚屾椂榪愯澶氫釜榪涚▼銆備粖澶╃殑鏂囨槑紺句細姣斾漢綾誨巻鍙蹭換浣曚竴涓椂闂寸偣鍒墮犵殑璋庤█鏁伴噺綰ч兘瑕佸緢澶氱殑閲忕駭銆?nbsp;

鎵繙浜嗭紝Docker灝嗚繘紼嬬殑闅旂妯″瀷鐨勮繘琛屼簡鎵╁睍錛岃闅旂鎬у彉寰楁洿寮恒侱ocker鏄湪Linux鍐呮牳鐨勫熀紜涓婃墦閫犵殑涓緋誨垪宸ュ叿銆傛暣涓枃浠剁郴緇熻鎶借薄浜嗭紝緗戠粶琚櫄鎷熷寲浜嗭紝鍏跺畠榪涚▼琚殣钘忎簡錛屽茍涓斾粠鐞嗚涓婏紝涓嶅彲鑳介冭劚瀹瑰櫒鍘誨鍦ㄤ竴涓満鍣ㄤ笂鐨勫叾浠栬繘紼嬫悶鐮村潖銆傚疄闄呬腑錛屾瘡涓漢瀵逛簬鎬庝箞鎵嶈兘閫冭劚瀹瑰櫒錛岃嚦灝戝幓鏀墮泦涓鐐硅繍琛屽鍣ㄧ殑鏈哄櫒鐨勭浉鍏充俊鎭紝鎸佸紑鏀劇殑鎬佸害銆傝窡铏氭嫙鏈烘瘮杈冭搗鏉ワ紝瀹瑰櫒鐨勯殧紱繪ц繕鏄緝寮便?nbsp;

 

涓婇潰綆ご錛氭彁鍗囧崟鏈烘ц兘錛涗笅闈㈢澶達細鎻愬崌闅旂鎬?/div>
浣嗘崲涓搴︾湅錛岃繘紼嬫瘮瀹瑰櫒鎬ц兘鏇村ソ錛屽鍣ㄦц兘姣旇櫄鎷熸満鎬ц兘鏇翠匠銆傚師鍥犲緢綆鍗曪紝闅旂鎬ф洿楂橈紝鍦ㄦ瘡涓涓笂涓嬫枃涓氨闇瑕佽繍琛屾洿澶氱殑涓滆タ錛屼粠鑰屾嫋鎱㈤熷害銆傞夋嫨涓涓殧紱繪х殑榪囩▼錛屽疄闄呭氨鏄喅瀹氫綘瀵硅榪愯榪涚▼鐨勪俊浠繪湁澶氬皯鐨勮繃紼?- 瀹冧細涓嶄細鍘誨共鎵板叾浠栫殑榪涚▼錛熷榪愯鐨勮繘紼嬮兘鏄嚜宸辯殑浜插効瀛愶紝閭d綘瀵逛粬浠細鏈変竴涓緢楂樼殑淇′換搴︼紝瀵逛粬浠敤鏈灝戠殑闅旂錛岃繍琛屽湪涓涓繘紼嬩腑灝辮浜嗐傚鏋滄槸SAP錛岄偅涔堜綘寰堝彲鑳介渶瑕佸敖鍙兘楂樼殑闅旂鎬э細灝嗙數鑴戣鍦ㄥ皝瀛樺湪綆卞瓙閲岋紝緇戝湪鐏涓婂彂灝勫埌鏈堢悆銆?nbsp;

Docker鍙︿竴涓緢濂界殑鐗規ф槸錛屽鍣ㄥ彲浠ヤ綔涓轟竴涓暣浣撲氦浠樸備粬浠笉浼氬儚铏氭嫙鏈洪偅涔堣噧鑲褲傝繖澶уぇ鐨勬彁楂樹簡閮ㄧ講鐨勭畝鏄撳害銆傚湪榪欎釜寰湇鍔℃祦琛岀殑涓栫晫閲岋紝浣犲彲浠ュ緢瀹規槗灝嗕綘鐨勬湇鍔℃崋鍦ㄤ竴璧鳳紝鐢ㄩ暅鍍忔潵鍙戝竷銆備綘鐢氳嚦鍙互灝哹uild鐨勭粨鏋滄寚瀹氭垚涓涓狣ocker闀滃儚銆?nbsp;

Docker灝嗕細鎬庢牱鏀瑰彉杞歡寮鍙戝拰閮ㄧ講鐨勮繃紼嬩粛鐒舵湁寰呰瀵熴傚敖綆℃垜瑙夊緱Docker鏄竴縐嶅甫鏈夌牬鍧忔х殑鎶鏈紝浣嗗獎鍝嶈繕鍦ㄥ嚑騫翠箣鍚庢墠浼氬埌鏉ャ傝櫧鐒舵垜浼氳涓篋ocker浼氳寰堝緋葷粺綆$悊鍛樹涪鎺夊伐浣滐紝浣嗘槸瀹為檯涓奃ocker鍗翠細鏀瑰彉浠栦滑鐨勫伐浣溿傛瘡涓漢鐜板湪閮介渶瑕佷竴鐐瑰彉闈╋紝璧朵笂鏃朵唬鐨勮剼姝ャ?nbsp;

鍙堟壇榪滀簡錛岃璇碠SX涓婄殑Docker銆?nbsp;

緇嗗績鐨勪綘鍙兘娉ㄦ剰鍒幫紝鎴戜箣鍓嶈Docker鏄繍琛屽湪Linux鍐呮牳涔嬩笂鐨勩傜劧鑰孫SX娌℃湁Linux鍐呮牳錛岄偅鎬庝箞榪愯Docker鍛€備負浜嗚В鍐寵繖涓棶棰橈紝鎴戜滑闇瑕佺敤铏氭嫙鏈烘潵榪愯Docker銆傛垜浠彲浠ョ敤涓涓彨boot2docker鐨勫伐鍏鋒潵鍋氳繖浠朵簨鎯咃紝浣嗘槸鏈榪戣docker-machine鍙栦唬浜嗐?nbsp;

鎴戠殑鏈轟笂鏈変竴涓瘮杈冭佺殑Docker錛屼絾鏄垜瑙夊緱鎯寵瘯璇旸ocker Compose錛屽洜涓烘垜榪愯鐫寰堝鐨勬湇鍔°侱ocker Compose鑳借寰堝鐨勫鍣ㄥ崗浣滆搗鏉ヨ繍琛屼竴涓暣浣撶殑鐜銆備負浜嗛伒寰繚璇侀殧紱繪湇鍔$殑瀹楁棬錛屾瘡涓涓湇鍔¢兘榪愯鍦ㄥ崟鐙殑瀹瑰櫒涓傚洜鑰岋紝涓涓吀鍨嬬殑web搴旂敤涓紝鍙互鎶妛eb鏈嶅姟鍣ㄨ繍琛屽湪涓涓鍣ㄩ噷闈紝鏁版嵁搴撹繍琛屽湪鍙﹀涓涓鍣ㄩ噷闈紝鐒跺悗榪欎簺瀹瑰櫒鍙互鏀懼湪鍚屼竴涓満鍣ㄤ笂銆?nbsp;

鎴戜粠Docker瀹樼綉涓婁笅杞戒簡瀹夎鍖咃紝騫朵笖璺熺潃瀹夎鎸囧崡http://docs.docker.com/mac/step_one/瀹夎銆傝濂紻ocker鍚庯紝鎴戣docker-machine鍦╒irtual Box涓婂垱寤轟簡鏂扮殑铏氭嫙鏈恒?nbsp;

 

涓璧風湅璧鋒潵寰堥『鍒╋紝鐒跺悗鍚姩闅忓鍙鐨刪ello-world闀滃儚銆?nbsp;

寰堟儕璁惰繖涓暅鍍忕殑騫朵笉瀹屽叏錛屽畬鍏ㄦ病鏈夊彂鐜頒換浣曚竴涓湴鏂規湁“hello world”鐨勮緭鍑恒傜劧鑰屽ソ鍦紝涓嶆槸姣忎竴涓狣ocker闀滃儚閮藉疄鐜板湴榪欒埇鑽夌巼銆傝繖涓猦ello world鐨勪緥瀛愭瘮杈冩棤鑱婏紝鐪嬬湅鑳戒笉鑳芥壘鍒版洿鍔犳湁鎰忔濈殑銆傛垜浠兂浠庡鍣ㄤ腑鏈嶅姟涓涓〉闈紝鎴戞墦綆椾嬌鐢∟ginx錛屽凡緇忔湁涓涓幇鎴愮殑Nginx鐨勫鍣ㄤ簡錛屽洜姝ゆ垜鍒涘緩浜嗕釜鏂扮殑Dockerfile銆侱ockerfile鍖呭惈浜嗕竴緋誨垪濡備綍鎸囧Docker浠庝竴緋誨垪闀滃儚涓垱寤哄嚭涓涓鍣ㄧ殑鎸囦護銆傝繖閲屾彁鍒扮殑瀹瑰櫒鍖呭惈浠ヤ笅鍐呭錛?nbsp;
Java浠g爜 
  1. FROM nginx  
  2. COPY *.html /usr/share/nginx/html/  

絎竴琛岃緗簡鎴戜滑瀹瑰櫒鐨勫熀紜闀滃儚銆傜浜岃灝嗘湰鍦扮殑甯︽湁html鍚庣紑鐨勬枃浠舵嫹璐濆埌Nginx瀹瑰櫒涓璚EB鏈嶅姟鍣ㄧ殑鐩綍閲屻備負浜嗕嬌鐢ㄨ繖涓狣ockerfile鏂囦歡錛屾垜浠渶瑕佸垱寤轟竴涓狣ocker鐨勯暅鍍忥細 
Java浠g爜 
  1. /tmp/nginx$ docker build -t nginx_test .  
  2. Sending build context to Docker daemon 3.072 kB  
  3. Step 0 : FROM nginx  
  4. latest: Pulling from library/nginx  
  5. 843e2bded498: Pull complete  
  6. 8c00acfb0175: Pull complete  
  7. 426ac73b867e: Pull complete  
  8. d6c6bbd63f57: Pull complete  
  9. 4ac684e3f295: Pull complete  
  10. 91391bd3c4d3: Pull complete  
  11. b4587525ed53: Pull complete  
  12. 0240288f5187: Pull complete  
  13. 28c109ec1572: Pull complete  
  14. 063d51552dac: Pull complete  
  15. d8a70839d961: Pull complete  
  16. ceab60537ad2: Pull complete  
  17. Digest: sha256:9d0768452fe8f43c23292d24ec0fbd0ce06c98f776a084623d62ee12c4b7d58c  
  18. Status: Downloaded newer image for nginx:latest  
  19. ---> ceab60537ad2  
  20. Step 1 : COPY *.html /usr/share/nginx/html/  
  21. ---> ce25a968717f  
  22. Removing intermediate container c45b9eb73bc7  
  23. Successfully built ce25a968717f   

Docker build鍛戒護寮濮嬪皢鎷夊彇宸茬粡鏋勫緩濂界殑Nginx瀹瑰櫒銆傜劧鍚庡皢鎴戜滑鐨勬枃浠舵嫹璐濆埌瀹瑰櫒閲岄潰錛屽茍涓旀樉紺哄鍣ㄧ殑hash鍊鹼紝榪欒瀹冧滑寰堝鏄撹鯨璁ゃ傝榪愯榪欎釜瀹瑰櫒鎴戜滑鍙互榪愯錛?nbsp;
Java浠g爜 
  1. /tmp/nginx$ docker run --name simple_html -d -p 3001:80 -p 3002:443 nginx_test  

榪欐潯鍛戒護璁〥ocker榪愯nginxtest鐨勫鍣紝騫朵笖鍙栧悕涓簊imple_html銆?d閫夐」鏄負浜嗚Docker鍦ㄥ悗鍙拌繍琛岃繖鏉″懡浠わ紝騫朵笖鏈緇?p閫夐」鏄負浜嗚漿鍙戠鍙o紝榪欓噷闇瑕佸皢鏈湴鐨?001绔彛鏄犲皠鍒板鍣ㄧ殑80绔彛 - 鍗蟲甯哥殑web鏈嶅姟鍣ㄧ鍙c傜幇鍦ㄦ垜浠彲浠ヨ繛鎺ュ埌web鏈嶅姟涓婁簡銆傚鏋滄垜浠墦寮chrome錛岃闂甽ocalhost:3001灝變細鐪嬪埌錛?nbsp;

 

灞呯劧涓嶈錛岄棶棰樺湪浜嶥ocker娌℃湁鎰忚瘑鍒拌嚜宸辮繍琛屽湪铏氭嫙鏈虹殑鐜閲岄潰錛屽洜姝ゆ垜浠渶瑕佸皢vm鐨勭鍙f槧灝勫埌鎴戜滑鏈湴鏈哄櫒涓婏細 
Java浠g爜 
  1. Docker container:80 -> vm host:3001 -> OSX:3001  

榪欎釜浠庤櫄鎷熸満綆$悊鍣ㄩ噷闈㈠彲浠ヨ交鏉劇殑鎼炲畾錛?nbsp;

 

鐜板湪鎴戜滑鍙互鐪嬪埌欏甸潰浜嗭細 

 

榪欏氨鏄垜浠斁鍦ㄥ鍣ㄤ腑鐨勬枃浠躲傚ソ鏋佷簡錛佺幇鍦ㄦ垜鍑嗗濂藉皾璇曟洿澶嶆潅涓鐐圭殑瀹瑰櫒浜嗐?nbsp;

灝忚創澹細 

鎴戞敞鎰忓埌鍦ㄨ櫄鎷熸満閲岄潰鍚屾椂騫惰鐨勮繍琛孌ocker浼氭暣涓緋葷粺hang浣忋傛垜鎬鐤戝悓鏃惰窇涓や釜铏氭嫙宸ュ叿鍙兘璁╂煇涓湴鏂瑰崱浣忎駭鐢熶簡鍐茬獊鐨勭粨鏋溿傛垜鐩鎬俊docker-machine鐨勫茍琛岀殑鏀寔姝e湪鍦ㄧН鏋佺殑瑙e喅涓紝0.5鐗堟湰鍙兘浼氱湅鍒般傜洿鍒拌繖涔嬪墠錛屼綘鍙互鍙傝冿細http://kb.parallels.com/en/123356騫朵笖鐪嬬湅錛?a target="_blank" style="color: #006699;">https://github.com/Parallels/docker-machine涓docker-machine鐨刦ork鐗堟湰銆?nbsp;

鍘熸枃閾炬帴錛?a target="_blank" style="color: #006699;">Yet another intro to docker 錛堢炕璇戯細閽熸渶榫?鏍″錛氬畫鍠伙級 

璇戞枃鏉ヨ嚜錛?a target="_blank" style="color: #006699;">DockOne.io


paulwong 2015-10-30 12:49 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 国产精品久久亚洲一区二区| 男男黄GAY片免费网站WWW| 老司机亚洲精品影院在线观看 | 久久黄色免费网站| 亚洲精品视频免费观看| 四虎一区二区成人免费影院网址| 日本免费污片中国特一级| 成人免费无毒在线观看网站| 免费人成在线观看69式小视频| 亚洲视频在线观看免费| 永久中文字幕免费视频网站| 亚洲第一AAAAA片| 蜜臀亚洲AV无码精品国产午夜.| 免费看搞黄视频网站| 97av免费视频| 日韩一区二区a片免费观看| 精品亚洲一区二区三区在线观看| 久久久久亚洲AV无码专区首JN| 日韩一区二区三区免费播放| 在线看免费观看AV深夜影院| 免费阿v网站在线观看g| 在线免费视频一区二区| 亚洲国产精品人久久| 天堂亚洲免费视频| 成年人网站在线免费观看| 亚洲AV福利天堂一区二区三 | 亚洲第一精品福利| 美女视频黄.免费网址| 久久www免费人成看国产片| 在线免费观看色片| 亚洲欧洲自拍拍偷综合| 最新亚洲人成无码网站| 4hu四虎最新免费地址| 久久亚洲国产午夜精品理论片| 美美女高清毛片视频黄的一免费| 美女被cao免费看在线看网站| 日本红怡院亚洲红怡院最新| 免费的黄网站男人的天堂| 四虎成人免费观看在线网址| 亚洲第一区视频在线观看| 秋霞人成在线观看免费视频 |