1 回答

TA貢獻(xiàn)1864條經(jīng)驗(yàn) 獲得超2個(gè)贊
簡單說這些不同的tag表示基于不同的base image。
頁面下方說的很清楚了。
Some of these tags may have names like jessie or stretch in them. These are the suite code names for releases of Debian and indicate which release the image is based on.
Jessie stretch wheezy 都是 Debian 發(fā)行版本的代稱。
比如 Jessie 杰西, 是2015年發(fā)行的。
wheezy 是 2013年發(fā)行的。
alpine 和Debian 一樣 都是Linux的發(fā)行版本,特點(diǎn)是非常小,只有5M。 小到連bash都沒有,不過有類似的ash。這也是官方非常推薦的,適合作為基礎(chǔ)鏡像。
帶 slim 的就是瘦身版,如 Jessie-slim 。 只保留編譯node時(shí)需要的依賴。
至于為什么搞這么多基礎(chǔ)鏡像,有時(shí)候我們需要在特定的平臺(tái)編譯其他東西。滿足一些項(xiàng)目的環(huán)境要求。
簡單總結(jié):
如果只想跑node,就用Alpine,因?yàn)樗钶p量。
- 1 回答
- 0 關(guān)注
- 1895 瀏覽
添加回答
舉報(bào)