Tag: 高山

为什么我的阿尔卑斯docker上没有findbin / sh?

我正在build造一个基于阿尔卑斯山的docker堆栈。 鉴于我的: php7-dockerfile : FROM php:7-fpm-alpine RUN apk update && \\ apk upgrade && \\ apk add –update autoconf gcc 和docker-compose.yml : version: "2" services: php: build: context: . dockerfile: php7-dockerfile container_name: test_php volumes_from: – data 在运行docker-compose build我得到: Building data Step 1 : FROM busybox —> 47bcc53f74dc Step 2 : ADD ./web /var/www/html —> Using […]

在Docker Alpine Linux容器上运行Scala SBT时的证书exception

我有一个Dockerfile与下面的基本映像: FROM frolvlad/alpine-oraclejdk8:slim 在同一个Dockerfile中,我也运行: activator compile 当我运行$ docker build -t some_name . 在我的MacBook上,SBT步骤按预期工作。 当我在远程Ubuntu主机(AWS上的EC2实例)上运行相同的命令时,通过相同的Dockerfile,我得到了许多证书错误,如下所示: [info] Resolving org.webjars#strip-json-comments;1.0.2-1 … [error] Server access Error: java.security.cert.CertificateException: No name matching repo.typesafe.com found url=https://repo.typesafe.com/typesafe/ivy-releases/org.webjars/strip-json-comments/1.0.2-1/ivys/ivy.xml [error] Server access Error: java.security.cert.CertificateException: No name matching repo.scala-sbt.org found url=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.webjars/strip-json-comments/1.0.2-1/ivys/ivy.xml [error] Server access Error: java.security.cert.CertificateException: No name matching repo1.maven.org found url=https://repo1.maven.org/maven2/org/webjars/strip-json-comments/1.0.2-1/strip-json-comments-1.0.2-1.pom [info] Resolving com.typesafe.sbt#sbt-rjs;1.0.7 … […]

docker工人正式build造(docker:最新)与chromiuim

我一直在试图在最后两天得到chromuim安装和运行在docker:最新的docker图像。 (在docker的docker)。 我已经尝试了多个docker文件: from docker:latest RUN apk add –no-cache python py2-pip curl bash chromuim ttf-freefont xvfb nodejs nodejs-npm udev RUN curl -sSL https://sdk.cloud.google.com | bash ENV PATH $PATH:~/google-cloud-sdk/bin RUN pip install docker-compose RUN npm install -g @angular/cli swagger ENV CHROME_BIN=/usr/bin/chromium-browser 这安装了铬57,不支持无头。 所以我怀疑我可以用xvbf运行这个,但是运行这个chrome失败: Failed to move to new namespace: PID namespaces supported, Network namespace supported, but […]

编译高山docker上的opencv

我试图从一个阿尔卑斯山docker图像编译opencv 2.4.9。 我得到它编译,我的程序正在工作,但看到一些警告。 不知道我是否应该担心这一点。 Java HotSpot(TM)64位服务器VM警告:您已经加载了库/usr/lib/libtbb.so,这可能会禁用堆栈保护。 虚拟机将尝试修复现在的防护罩。 强烈build议您使用'execstack -c'修复库,或者用'-z noexecstack'链接它。 这里是我的Dockerfile https://goo.gl/M1iuV9的链接

Java和Docker基于高山

我有一个Java应用程序,我想在阿尔卑斯山运行。 它有一个GUI。 我正在build立一个基于高山/最新的形象。 安装了所有必需的软件包,当我运行应用程序,我看到以下错误: [ERROR] [system.err] GLib (gthread-posix.c): Unexpected error from C library during 'pthread_cond_init': Invalid argument. Aborting. 这对我来说似乎是与glibc库的版本兼容性问题。 关于已安装的glib的信息: bash-4.3# apk info glib glib-2.50.2-r0 description: Common C routines used by Gtk+ and other libs glib-2.50.2-r0 webpage: http://www.gtk.org glib-2.50.2-r0 installed size: 2957312 bash-4.3# 不知道它是否相关,但在libjvm.so上做ldd,如下所示: bash-4.3# ldd /opt/jdk1.8.0_112/jre/lib/amd64/server/libjvm.so ldd (0x7f3257095000) libm.so.6 => ldd (0x7f3257095000) libdl.so.2 => […]

Docker / Alpine和Ubuntu中的ImageFont不同

我已经创build了我的显示界面与python Pillow 4.0.0库的图像。 我把我的文字放到枕头图片中,然后转换成位图发送到显示器。 我用ImageFont函数将文字放入图片中: ImageFont.truetype('my_fonts/font.ttf', font_size) Everythings正常工作(在Ubuntu中) 如果我在Docker Alpine容器中使用相同版本的Pillow运行相同的程序,则输出结果不如Ubuntu中那么好: 我希望这是可识别的(它只有192x64px)。 这不是因为字体 – 所有的命令都链接到python脚本旁边的.ttf文件中。 另外它不是因为docker工人,当我尝试docker的Ubuntu的容器,结果是好的(与正常第一): 不幸的是,我不得不使用阿尔卑斯docker集装箱。 做一个人知道如何解决它? 谢谢Mike

如何清除docker容器内的caching内存

我在EC2中有一个docker swarm CE设置。 我有两个节点。 1名经理和1名工人。 主机实例types是Alpine Linux。 在Manager主机中,内存使用情况是: ~ $ free -m total used free shared buffers cached Mem: 7972 4996 2975 715 178 2857 -/+ buffers/cache: 1960 6011 Swap: 0 0 0 〜$ 现在当我login容器时, ~ $ docker exec -it c7cc255aca1f /bin/bash [root@c7cc255aca1f /]# And see the memory utilization: [root@c7cc255aca1f /]# free -m total used […]

高级的PHP 5.6弹性客户端3.4

我使用php构build我的图像:5.6.30-fpm-alpine。 我从AWS控制台下拉了Elasticache php 5.6客户端。 确切的错误我看到: PHP警告:PHP启动:无法加载dynamic库'/usr/local/lib/php/extensions/no-debug-non-zts-20131226/amazon-elasticache-cluster-client.so' – 重定位/ usr / local /lib/php/extensions/no-debug-non-zts-20131226/amazon-elasticache-cluster-client.so:backtrace:符号在未知的行0中找不到 任何想法得到这个工作?

Dockerfile在本地机器上编译,但在docker hub中自动生成失败

我试图通过链接我的github回购包含一个Dockerfile在docker集线器中自动构build泊坞窗图像。 这个图像是Raspberry Pi 3(可以在Dockerfile中看到)。 虽然Dockerfile在Raspberry Pi中工作正常,但它在x86_64 GNU / Linux机器中发生错误,而在Docker中心也无法编译。 这里是Docker中心的日志。 在Docker集线器和x86_64 GNU / Linux机器中,最后的错误是一样的。 Building in Docker Cloud's infrastructure… Cloning into '.'… KernelVersion: 4.4.0-79-generic Arch: amd64 BuildTime: 2017-03-28T19:26:53.326478373+00:00 ApiVersion: 1.27 Version: 17.03.1-ee-2 MinAPIVersion: 1.12 GitCommit: ad495cb Os: linux GoVersion: go1.7.5 Starting build of index.docker.io/swapnil18/docker-swarm-arm-socat:latest… Step 1/11 : FROM resin/raspberrypi3-alpine —> ca84ecc9fee4 Step 2/11 : MAINTAINER […]

为什么crond无法在alpine linux上运行非root crontab?

我正在Alpine Linux上运行一个非root用户的crontab文件。 我已经通过了另外两个cron相关的post,我没有答案: https://askubuntu.com/questions/23009/why-crontab-scripts-are-not-working https://serverfault.com/questions/449651/why-is-my-crontab-not-working-and-how-can-i-troubleshoot-it 这是设置。 我的crontab看起来像这样: PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin SHELL=/bin/bash * * * * * /opt/monitor/monitor.sh >> /var/log/monitor.log 2>&1 0 3 * * * /opt/monitor/monitor-log-clean.sh >> /var/log/monitor.log 2>&1 我的Dockerfile现在有点乱,但只是因为我一直在拼命解决这个问题。 看起来像这样 简而言之,我添加了crontab -e的SUID作为其他用户的工作,我创build我的用户,我导入我的crontab文件,然后我提供权限,我可以想到的一切。 FROM alpine:3.5 # DEPENDENCY TO ALLOW USERS TO RUN crontab -e RUN apk add –update busybox-suid # I LIKE BASH RUN apk –no-cache add […]