Tag: apt get

Java版本更新包安装

maven安装后,我有更新的Java符号链接问题。 我使用简单的docker文件: FROM java:8 RUN ["java", "-version"] RUN apt-get update && apt-get install -y maven && rm -rf /var/lib/apt/lists/* RUN ["java", "-version"] CMD ["java", "-version"] 在构build期间,我有下一个日志: Step 0 : FROM java:8 —> 4cd29d33e3f4 Step 1 : RUN java -version —> Running in 1c528620f318 openjdk version "1.8.0_66-internal" OpenJDK Runtime Environment (build 1.8.0_66-internal-b01) OpenJDK 64-Bit Server VM […]

尽pipeDEBIAN_FRONTEND在Docker镜像中,debconf警告

我有很简单的Dockerfile FROM ubuntu:14.04 MAINTAINER XXX <xxx@yyy.zzz> ARG DEBIAN_FRONTEND=noninteractive RUN sudo apt-get -y update && sudo apt-get -y install apache2-utils 我在Docker构build过程中看到以下消息 debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize […]

Docker CMD指令执行

我的docker文件有以下说明 CMD ["luarocks","install",luasocket"] 当我尝试构build映像时,它会成功构build,但luasocket尚未安装在我的泊坞窗上。 但是当我在docker上的“ sudo apt-get update ”之后手动执行这个语句时,一切都很顺利。 为什么在命令行上手动“更新”后,它正在被正确执行。 即使我的docker包含“ update ”命令,为什么在这种情况下失败?

Docker软件包:哈希总和不匹配

我正在执行apt-get更新(Ubuntu 14.04)时出现以下错误: Hit http://archive.ubuntu.com trusty/main amd64 Packages Hit http://archive.ubuntu.com trusty/restricted amd64 Packages Hit http://archive.ubuntu.com trusty/universe amd64 Packages Fetched 3156 kB in 15s (201 kB/s) W: **Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-trusty/main/binary-amd64/Packages Hash Sum mismatch** E: Some index files failed to download. They have been ignored, or old ones used instead.

Linux“Perf”工具不能在Docker镜像中运行?

我知道“perf”工具要求安装对应于特定的linux内核版本。 而且我知道所有的docker映像都运行在相同的linux内核版本上,不pipelinux发行版本。 我在Docker里面使用了Ubuntu 16.04并且已经安装了linux-tools-common,启动perf告诉我我还缺less一些软件包:' # perf /usr/bin/perf: line 32: lsb_release: command not found WARNING: perf not found for kernel 4.9.12 You may need to install the following packages for this specific kernel: linux-tools-4.9.12-moby linux-cloud-tools-4.9.12-moby You may also want to install one of the following packages to keep up to date: linux-tools-moby linux-cloud-tools-moby 然后我试图安装我错过的东西: root@xxxxxx:/# apt-get […]

无法(apt-get)在docker中安装软件包

我安装了Ubuntu 14.04虚拟机并运行docker(1.11.2)。 我尝试构build示例图像( 这里 )。 docker文件: FROM java:8 # Install maven RUN apt-get update RUN apt-get install -y maven …. 我得到以下错误: Step 3: RUN apt-get update –> Using cache —>64345sdd332 Step 4: RUN apt-get install -y maven —> Running in a6c1d5d54b7a Reading package lists… Reading dependency tree… Reading state information… E: Unable to locate package […]

Docker java:7图像apt-get更新循环依赖关系

我正在使用官方的Java:7泊坞窗图像。 当我运行apt-get更新时,会引发错误: E: The method driver /usr/lib/apt/methods/https could not be found. N: Is the package apt-transport-https installed? 所以当我运行时: apt-get install apt-transport-https 它说无法find包 Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package apt-transport-https 这是我的/etc/apt/source.list deb http://httpredir.debian.org/debian jessie main deb http://httpredir.debian.org/debian jessie-updates main deb http://security.debian.org jessie/updates main 我知道apt-transport-https需要“apt-get update”,反之亦然。 我可以使用包 […]

将软件包安装到ubuntu14.04 docker容器中

我目前有类似的图像正在为虚拟机和数字海洋开发和生产(他们正在使用打包机和可以build立)。 他们正在使用Ubuntu 14.04。 我已经从相同的脚本创build了一个docker版本没有任何问题。 这将是一个Gitlab CI环境。 当我来安装容器内的包时,我得到一个错误。 可能与破坏的init系统有关吗? 有东西没有运行? 我最初的命令是/sbin/init ,我尝试过和没有phusion / base-image。 错误是msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=–force-confdef" -o "Dpkg::Options::=–force-confold" install 'docker-engine'' failed: invoke-rc.d: unknown initscript, /etc/init.d/cgroup-lite not found. dpkg: error processing package cgroup-lite (–configure): msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=–force-confdef" -o "Dpkg::Options::=–force-confold" install 'docker-engine'' failed: invoke-rc.d: unknown initscript, /etc/init.d/cgroup-lite not found. dpkg: error processing package […]

来自debian的docker:wheezy不能构build

最近所有我的docker容器FROM debian:wheezy不能被build立了。 我试图启动下面的命令,甚至没有工作。 ~ docker run -it –rm debian:wheezy /usr/bin/apt-get update E: Method http has died unexpectedly! E: Sub-process http received a segmentation fault. 这是我的docker版本 ~ docker -v Docker version 1.12.6, build 78d18021e 一切都很好,直到上周,但现在我不能build立我的任何喘气的容器。 使用debian:jessie作品,但这不是答案。 我试图删除并重新安装docker,删除/ var / lib / docker文件夹,我删除了所有的容器和图像,升级我的distrib … 任何想法发生了什么? 何,我正在使用debian舒展 uname -a Linux debtim 4.8.0-1-amd64 #1 SMP Debian 4.8.7-1 (2016-11-13) x86_64 […]

apt-get在Docker后面的公司代理

我试图在Docker的企业代理服务器背后设置一个开发环境。 尽可能地尝试,我不能让docker集装箱与代理服务器交谈。 代理服务器和apt-get在主机上运行良好,即Ubuntu 12.04 Dockerfile中的第一件事是尝试设置代理variables: FROM ubuntu RUN echo 'Acquire::http { Proxy "http://my.proxy.net:8000"; };' >> /etc/apt/apt.conf.d/01proxy ENV HTTP_PROXY http://my.proxy.net:8000 ENV http_proxy http://my.proxy.net:8000 ENV HTTPS_PROXY https://my.proxy.net:8000 ENV https_proxy https://my.proxy.net:8000 RUN apt-get update && apt-get install -y build-essential 它拉好图像,设置variables,但是当它进入apt-get更新,它会尝试一会儿,然后失败: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease W: Failed to […]