[英]Dockerfile issues with build
I'm trying to compose my own docker container, my first issue is to gather the basic infrastructure - however docker build throw errors. 我试图组成自己的Docker容器,我的第一个问题是收集基本的基础架构-但是docker build抛出错误。
This is my file : 这是我的文件:
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
This is the error while building : 这是构建时的错误:
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
Later on when I solve this issue I would like to clone my private bitbucket repository. 稍后,当我解决此问题时,我想克隆我的私有bitbucket存储库。
Thanks :) 谢谢 :)
apt-get install -y ca-certificates
您缺少https功能的基本证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.