執行 sudo docker-compose up -d nginx mysql
指令,報錯:mysql
Service 'workspace' failed to build. Failed to connect to raw.githubusercontent.com port 443: Connection refused. /bin/sh: 1: .: Can't open /home/laradock/.nvm/nvm.sh
因爲某些你懂的因素
,致使GitHub的raw.githubusercontent.com
域名解析被污染了。nginx
經過修改hosts
解決此問題。git
查詢真實IPgithub
在https://www.ipaddress.com/查詢raw.githubusercontent.com的真實IP。sql
修改hostsdocker
sudo vim /etc/hosts
添加以下內容:vim
199.232.28.133 raw.githubusercontent.com
從新執行ui
從新執行sudo docker-compose up -d nginx mysql
便可。spa