简体   繁体   English

Dockerfile的构建问题

[英]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.

相关问题 无法构建任何Dockerfile - Not able to Build any Dockerfile 由于端口限制,无法构建dockerfile - Cannot build dockerfile due to port restrictions Docker:复制失败:在构建上下文中找不到文件(Dockerfile) - Docker: COPY failed: file not found in build context (Dockerfile) 如何将文件从本地复制到 Dockerfile 以在构建 ID 中运行 - How to copy a file from local to Dockerfile to run in the build id Dockerfile 构建映像错误:分发包不包含命名空间 package 的模块或包 - Dockerfile build image error: Distribution contains no modules or packages for namespace package 在构建阶段无法通过Dockerfile在Docker容器中设置ENV变量 - Failed to set ENV variables in docker containers via Dockerfile at build stage Dockerfile无法在Ubuntu 14.04上构建,但在Windows 10和Ubuntu 16.04上可以正常运行 - Dockerfile not able to build on Ubuntu 14.04 but does fine on Windows 10 and Ubuntu 16.04 Docker build fails to fetch packages from archive.ubuntu.com inside bash script used in Dockerfile - Docker build fails to fetch packages from archive.ubuntu.com inside bash script used in Dockerfile 使用Eclipse进行跨平台Java开发(构建路径问题) - Cross Platform java development with Eclipse (Build Path issues) Fabric构建后的Ubuntu Log创建权限问题 - Ubuntu Log creation permission issues after Fabric build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM