a note when using docker locally

发布时间 2023-04-13 11:49:48作者: HighHill
  • when building the getting-started application provided by official site, I got a error saying, 

    #0 138.4 node-pre-gyp ERR! install request to https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.2/napi-v6-linux-musl-x64.tar.gz failed, reason: socket hang up 
    
    it's normal in China that downloading files from github, so I changed the hosts file as below to acceralte the downloading.
    • get ip for fastly.net
    • get cdn for github
    • modify hosts
      # github
      151.101.1.194 github.global.ssl.fastly.net
      140.82.114.3 github.com