Docker build 遇到 Temporary failure resolving DNS 解析問題

Docker build 的時候,遇到一直 DNS 查詢錯誤的問題,錯誤訊息如下:

Err:1 http://ftp.tw.debian.org/debian stretch InRelease
  Temporary failure resolving 'ftp.tw.debian.org'
Reading package lists...
W: Failed to fetch http://ftp.tw.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'ftp.tw.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

要怎麼解決呢?

閱讀全文〈Docker build 遇到 Temporary failure resolving DNS 解析問題〉