node的docker鏡像jessiealpineonbuildslimstretchchakracore分別是什么意思?文檔上介紹也不是很全https://hub.docker.com/_/node/請大佬幫說一下,謝謝!
1 回答

慕斯王
TA貢獻1864條經驗 獲得超2個贊
簡單說這些不同的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 發行版本的代稱。
比如 Jessie 杰西, 是2015年發行的。
wheezy 是 2013年發行的。
alpine 和Debian 一樣 都是Linux的發行版本,特點是非常小,只有5M。 小到連bash都沒有,不過有類似的ash。這也是官方非常推薦的,適合作為基礎鏡像。
帶 slim 的就是瘦身版,如 Jessie-slim 。 只保留編譯node時需要的依賴。
至于為什么搞這么多基礎鏡像,有時候我們需要在特定的平臺編譯其他東西。滿足一些項目的環境要求。
簡單總結:
如果只想跑node,就用Alpine,因為它最輕量。
- 1 回答
- 0 關注
- 1898 瀏覽
添加回答
舉報
0/150
提交
取消