Tag: ubuntu 16.04

在Docker中,pip安装不能正常工作

题 在构build映像期间,我无法安装任何软件包。 从docker集线器拉动是可以的,但是当docker工人尝试使用networking来构build图像时会出现问题。 例如,如果我尝试运行: $ docker build -t sample-image:latest . …以及上述命令使用的Dockerfile具有以下行: RUN pip install -r requirements.txt …然后我得到下一个错误: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdbe102e278>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/sanic/ Could not find a version that satisfies the requirement sanic (from […]

如何在企业代理后面使用stun.l.google.com?

我想configuration我的本地副本 https://github.com/mattermost/mattermost-webrtc/blob/master/vagrant/janus/config/janus.cfg 在Mattermost中启用video通话以进行testing。 一部分是: [nat] stun_server = stun.l.google.com stun_port = 19302 如何在企业代理后面使用stun.l.google.com ? 我试过了 proxytunnel -p corporate-proxy:7123 -d stun.l.google.com:19302 -a 3098 并用第一部分replace [nat] stun_server = localhost stun_port = 3098 这导致了 $ docker run -it webrtc_blah_2 Janus commit: ad2c131617ac989df1a1bbd601272a5e448cbb3e Compiled on: Mon Jul 24 13:04:22 UTC 2017 ————————————————— Starting Meetecho Janus (WebRTC Gateway) v0.2.4 ————————————————— Checking […]

Docker图像创buildaws日志代理 – 错误

嗨,我想用aws日志代理服务创buildDocker镜像。 以下脚本我已经写了 我的Dockerfile FROM ubuntu:latest ENV AWS_REGION ap-northeast-1 RUN apt-get update && apt-get install -y curl python python-pip \ && rm -rf /var/lib/apt/lists/* COPY awslogs.conf ./ RUN curl https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py -O RUN chmod +x ./awslogs-agent-setup.py RUN ./awslogs-agent-setup.py –non-interactive –region ${AWS_REGION} –configfile ./awslogs.conf RUN apt-get purge curl -y RUN mkdir /var/log/awslogs WORKDIR /var/log/awslogs CMD /bin/sh /var/awslogs/bin/awslogs-agent-launcher.sh *********************完结档案****************** […]

在Docker“内部”目录之外创buildDocker卷

我试图指定卷创build的位置。 我在用着: # The following doesn't work, it will still bind to docker internal directory docker volume create \ –driver local \ –opt device=/var/foo/bar/ \ –name postgres_volume1 我的环境: Linux版本4.4.0-62-generic(buildd @ lcy01-30)(gcc版本5.4.0 20160609(Ubuntu 5.4.0-6ubuntu1〜16.04.4))#83 -Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017年 Docker版本17.09.0-ce。

使用Dockerfile构buildDocker镜像时出错

我正在尝试在Dockerfile使用configuration来构buildDockerfile : FROM ubuntu MAINTAINER axiom88guru(axiom88guru@gmail.com) Configuration for app below. Run upgrades RUN apt-get update Install basic packages RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs Install Ruby RUN apt-get -qq -y install ruby-full RUN gem install bundler –no-ri –no-rdoc RUN gem install foreman Install rails-new-docker WORKDIR /app RUN git clone https://github.com/axiom88-guru/rails-docker.git […]

在$ PATH中找不到Docker elasticsearch 1.7可执行文件“

我正在尝试为elasticsearch 1.7运行docker容器。 以下是我的Dockerfile: FROM ubuntu:16.04 RUN apt-get update \ && apt-get install -y curl zip unzip vim software-properties-common \ && echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \ && add-apt-repository -y ppa:webupd8team/java \ && apt-get update \ && apt-get install -y oracle-java8-installer \ && wget -qO – https://packages.elastic.co/GPG-KEY-elasticsearch | apt-key add – \ && echo […]

如何在Docker中获取minio-server版本?

通过在docker中使用minio服务器,我安装并在几个月前开始使用它,现在我需要知道我使用的是什么版本的minio服务器。 也想知道如何更新现有的minio服务器到最新版本,而不会丢失我的数据? 这里: Ubuntu版本是16.04,docker版本是1.13.0。

docker工人 – 写入pipe道:错误的文件描述符

我在Ubuntu上安装了docker.io。 当我正在尝试构build任何docker容器时,我将以错误写入pipe道结束:坏文件描述符 这些是我执行的命令 docker run nginx docker run hello-world docker版本 docker信息 docker的图像 任何想法来解决这个问题?

apt-get在Ubuntu 16.04中安装docker image:'/etc/resolv.conf':设备或资源忙

当从一个相当vanilla Ubuntu 16.04映像中运行apt-get install时,我收到下面的错误消息: ln: cannot remove '/etc/resolv.conf': Device or resource busy dpkg: error processing package resolvconf (–configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: resolvconf 不过,这些软件包似乎已经正确安装了。 如何解决它? 我的Dockerfile看起来像这样: FROM ubuntu:16.04 MAINTAINER Me Myself <me@myself.com> RUN apt-get update && apt-get install -y git nano RUN apt-get upgrade -y […]

docker运行ubuntu命令失败,错误:拉图像时出错:

docker运行ubuntu命令失败,错误: 拔取图片时出错: https ://index.docker.io/v1/repositories/library/ubuntu/images:在[:: 1]上拨打tcp:lookup index.docker.io:53:读取udp [:: 1 ]:48892 – > [:: 1]:53:read:连接被拒绝。 Ubuntu版本:16.04 内核版本: – 4.4.0-59-通用 Docker信息: 容器:0 运行:0 暂停:0 停止:0 图片:0 服务器版本:1.12.1 存储驱动程序:aufs 根目录:/ var / lib / docker / aufs 备份文件系统:extfs Dirs:0 Dirperm1支持:是 logging驱动程序:json文件 Cgroup驱动程序:cgroupfs 插件: 卷:本地 networking:空主机桥覆盖 群:不活跃 运行时:runc 默认运行时:runc 安全选项:apparmor 内核版本:4.4.0-59-通用 操作系统:Ubuntu 16.04.1 LTS OSType:linux 架构:x86_64 CPU:12 总内存:15.62 GiB 名字:cran […]