2016-07-06 92 views
0

我想构建自己的码头集装箱, 我的第一个问题是收集基本的基础设施 - 然而码头构建投掷错误。Dockerfile问题与构建

这是我的文件:

FROM ubuntu:14.04 

RUN apt-get update && RUN apt-get install -y \ 
    git \ 
    curl 

RUN curl -sL https://deb.nodesource.com/setup_6.x | -E bash - \ 
    && apt-get update && apt-get install -y nodejs 

这是错误,而建设:

et:15 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [20.2 kB] 
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [170 kB] 
Get:17 http://archive.ubuntu.com trusty/main Sources [1335 kB] 
Get:18 http://archive.ubuntu.com trusty/restricted Sources [5335 B] 
Get:19 http://archive.ubuntu.com trusty/universe Sources [7926 kB] 
Get:20 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB] 
Get:21 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB] 
Get:22 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB] 
Fetched 21.8 MB in 23s (918 kB/s) 
Reading package lists... 
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 
/bin/sh: 1: RUN: not found 
The command '/bin/sh -c apt-get update && RUN apt-get install -y  git  curl' returned a non-zero code: 127 

后来,当我解决这个问题,我想克隆我的私人到位桶储存库。

谢谢:)

+0

发现我在我的第二行中有2个“RUN”,修复了这个问题 - 但我仍然得到了PGP密钥问题。 –

+2

编辑您的帖子以包含该更改 –

回答

1
apt-get install -y ca-certificates 

你缺少了HTTPS功能的基本证书。