retanoj
V2EX  ›  Docker

为何 node 官方镜像会报错?

  •  1
     
  •   retanoj · Oct 17, 2017 · 3012 views
    This topic created in 3207 days ago, the information mentioned may be changed or developed.
    本来标题想写:为何 docker 官方镜像那么难用。想想有点大了,不过日常使用中的确非官方构建的镜像会比官方的更“开箱可用”。

    今天用 node 镜像做编译,pull 了官方的 node:8,安装 package.json 过程就一直报错。google 一下各种 docker 下 npm 安装不完全,npm 安装 error。

    没细究便换了 bitnami 的 node:8,就一路顺畅。

    回头看看,bitnami 的基于 Debian,官方的基于 arch ? 是上层基础镜像的问题不? 在选镜像方面有什么 best practice 吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3095 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:43 · PVG 20:43 · LAX 05:43 · JFK 08:43
    ♥ Do have faith in what you're doing.