十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
這篇文章主要介紹“快速國內(nèi)代碼Repo和Docker鏡像的拉取怎么啟動”,在日常操作中,相信很多人在快速國內(nèi)代碼Repo和Docker鏡像的拉取怎么啟動問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”快速國內(nèi)代碼Repo和Docker鏡像的拉取怎么啟動”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

創(chuàng)新互聯(lián)公司主營北流網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都app開發(fā),北流h5微信小程序搭建,北流網(wǎng)站營銷推廣歡迎北流等地區(qū)企業(yè)咨詢
Apollo的主站代碼Repo是在Github上,鏡像Repo是在DockerHub上,拉取時間長也不穩(wěn)定。
首先,在Github Apollo的Quick Start中就有說明中國的快速代碼拉取。
國內(nèi)放在了Gitee上。
git clone https://gitee.com/ApolloAuto/apollo.git git remote set-url origin git@github.com:YOUR_GITHUB_USERNAME/apollo.git # Using SSH git remote add upstream git@github.com:ApolloAuto/apollo.git git remote -v git pull --rebase upstream master
第一步: 瀏覽器打開如下兩個網(wǎng)址,找到對應(yīng) IP 地址: http://github.com.ipaddress.com/ http://github.global.ssl.fastly.net.ipaddress.com/
第二步: 編輯 hosts 文件 sudo vim /etc/hosts 加入如下兩行:
140.82.xx.xxx github.com 199.232.yy.yyy github.global.ssl.fastly.net
第三步:更新 DNS 緩存(僅限 Mac 用戶) Linux 用戶請忽略此步驟。
sudo dscacheutil -flushcache
在運行dev_start.sh時有命令行加速選項:
dev_start.sh --help OPTIONS: -h, --help Display this help and exit. -f, --fast Fast mode without pulling all map volumes. -g, --geoPull docker image from geolocation specific registry mirror. -l, --local Use local docker image. -t, --tag Specify docker image with tag to start. -d, --dist Specify Apollo distribution(stable/testing) --shm-size Size of /dev/shm . Passed directly to "docker run" -y Agree to Apollo License Agreement non-interactively. stop Stop all running Apollo containers.
是這個-g cn的選項可以加速從國內(nèi)的鏡像站,而非dockerhub拉取鏡像。
dev_start.sh -g cn
現(xiàn)在啟動apollo足夠爽了。
到此,關(guān)于“快速國內(nèi)代碼Repo和Docker鏡像的拉取怎么啟動”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>
當(dāng)前名稱:快速國內(nèi)代碼Repo和Docker鏡像的拉取怎么啟動
分享網(wǎng)址:http://m.jiaotiyi.com/article/ihpsip.html