Laradock ppa加速


環境 laradock-9.7 + win10 + docker desktop

laradock 項目地址

 

問題:

構建 workspace 服務時 卡在這動不了,各種搜資料終於解決了

 

解決方法:

 

 在 workspace 的 Dockfile 中 增加標紅的一段:

find /etc/apt/sources.list.d/ -type f -name "ondrej-ubuntu-php-xenial.list" -exec  sed  -i.bak -r  's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig' {} \; && \

 

參考:

https://mogeko.me/2018/035/

https://www.zhenyan.io/zh-cn/Download-Open-Source-Resources-Faster-in-Mainland-China/

https://github.com/ustclug/mirrorrequest/issues/43

https://www.yaozeyuan.online/2018/04/01/2018/04/Ubuntu16.04%E5%AE%89%E8%A3%85PHP7.2/

https://learnku.com/articles/6018/homemade-ppa-accelerated-mirror-image

https://segmentfault.com/a/1190000021076776

https://segmentfault.com/a/1190000021848135

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM