Tag: 高山

Docker + Elixir / Phoenix的旧版本

我被要求将一个Elixir / Phoenix应用程序移动到Docker,而我没有以前的经验。 该应用程序使用非最新版本的Elixir和Phoenix,所以我不得不偏离在线代码,通常关注最新版本。 这导致我写这个Dockerfile # FROM bitwalker/alpine-elixir:latest FROM bitwalker/alpine-elixir:1.3.4 MAINTAINER Paul Schoenfelder <paulschoenfelder@gmail.com> # Important! Update this no-op ENV variable when this Dockerfile # is updated with the current date. It will force refresh of all # of the base images and things like `apt-get update` won't be using # old cached versions when […]

如何让sendmail在Alpine Docker容器中工作?

我只是想发送简单的电子邮件用于testing目的,但在容器内执行sendmail时,我得到sendmail: can't connect to remote host (127.0.0.1): Connection refused 。 在Alpine容器中使用sendmail时需要考虑什么?

以Alpine linux为基础图像创buildazure-cli的docker映像时出错

我正在尝试创build一个安装了azure-cli的高山docker图像。 我的docker文件如下: FROM alpine:3.4 RUN set -x \ && apk update \ && apk add –no-cache bash \ python \ curl \ coreutils \ openssl \ jq \ py-pip \ && apk add –virtual=build \ gcc \ libffi-dev \ musl-dev \ libxml2-dev \ libxslt-dev \ linux-headers \ gcc \ libffi \ openssl-dev \ python-dev \ […]

使用mysql-client从Alpine Docker映像内部通过SSL连接到Amazon RDS。 并validation证书

我有一个数据库托pipe在亚马逊RDS(欧洲西部2区)。 我试图从一个Docker容器中连接到它。 我的中级证书是rds-ca-2015-eu-west-2.pem 。 Ubuntu工作正常: docker run –rm -v "$PWD/rds-ca-2015-eu-west-2.pem:/ca.pem:ro,cached" ubuntu sh -c '\ apt-get update > /dev/null \ && apt-get install -y mysql-client > /dev/null \ && mysql \ -h MYDATABASE.eu-west-2.rds.amazonaws.com \ -P 3306 \ -u MYUSERNAME \ -pMYPASSWORD \ –ssl-mode=VERIFY_IDENTITY \ –ssl-ca=/ca.pem \ -e "SELECT NOW();"' 输出: mysql: [Warning] Using a password on […]

docker-compose构build失败/ bin / sh:apt-get:not found

我正在尝试在这里构build示例应用程序。 http://codepany.com/blog/rails-5-and-docker-puma-nginx/ 当我运行docker-compose构build时: Step 1/13 : FROM ruby:2.4-alpine —> 64419e20d6c5 Step 2/13 : RUN apt-get update -qq && apt-get install -y build- essential libpq-dev nodejs —> Running in 98d4ed713984 /bin/sh: apt-get: not found ERROR: Service 'app' failed to build: The command '/bin/sh -c apt- get update -qq && apt-get install -y build-essential libpq-dev nodejs' returned […]

Docker alpine image:ERROR 2002(HY000):无法通过套接字'/run/mysqld/mysqld.sock'连接到本地MySQL服务器(2“没有这样的文件或目录”)

你好有一个公共的高山MySQL图像docker。 https://hub.docker.com/r/wangxian/alpine-mysql/ 我想在其中运行MySQL。 在docker run命令后执行mysql命令时出现这个错误: docker run -i -t wangxian/alpine-mysql sh /app # mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory") 那么我从头安装一切。 我做了一个阿尔卑斯山的新形象,然后我安装了这些东西: apt add mysql mysql-client 然后我再次键入mysql并得到相同的错误。 这看起来像一个常见的错误,它发生在所有的高山图像,因为这是一个新的安装阿尔卑斯山。 任何解决scheme 编辑:当我做docker运行-i -t wangxian / alpine-mysql 2016-08-17 12:51:41 140215609339688 [Note] Plugin 'FEEDBACK' is disabled. 2016-08-17 […]

Docker微容器

我正在试验微容器。 我创build了下面的Dockerfile。 这个想法是,这个Docker文件从一个非常小的基本图像开始。 (5 MB)安装构build工具,进行构build,然后删除构build工具。 FROM alpine ENTRYPOINT ["/bin/dockerdemo"] RUN apk update RUN apk add -t build-deps build-base go git COPY . /go/src/dockerdemo RUN cd /go/src/dockerdemo \ && export GOPATH=/go \ && go get \ && go build -o /bin/dockerdemo \ && rm -rf /go RUN apk del –purge build-base go git 我期待它真的很小。 但它是358 MB。 […]

Akka 2.5分布式数据在Docker + Alpine Linux上

在将使用Akka + Akka集群分片的服务升级到新发布的Akka(2.5.0)之后,我们开始遇到在Docker + Alpine Linux中启动系统的问题。 从我可以推断,Akka集群分片被configuration为使用Akka分布式数据(这不是实验了2.5.0),并且它使用LMDB(这需要GCC + glibc,而不是在Alpine Linux中可用)。 我的问题如下: 1)是否有任何标准的select支持Akka而不是LMDB? 2)有没有办法让LMDB在Alpine Linux上工作? 堆栈跟踪: [ERROR] [04/20/2017 13:42:19.014] [lotus-akka.actor.default-dispatcher-5] [akka://lotus/system/sharding/replicator/durableStore] Error relocating /tmp/lmdbjava-native-library-5972006786989102785.so: __fprintf_chk: symbol not found akka.actor.ActorInitializationException: akka://lotus/system/sharding/replicator/durableStore: exception during creation at akka.actor.ActorInitializationException$.apply(Actor.scala:191) at akka.actor.ActorCell.create(ActorCell.scala:600) at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:454) at akka.actor.ActorCell.systemInvoke(ActorCell.scala:476) at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:282) at akka.dispatch.Mailbox.run(Mailbox.scala:223) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native […]

高山linuxdocker上的apache-spark启动错误

*我跟着https://www.anchormen.nl/spark-docker/和当我执行命令,Apache启动失败,说“ – ”不被识别。 我是非常新的spark.Request从我们的信任的社区成员的帮助。 bash /opt/spark/sbin/start-master.sh starting org.apache.spark.deploy.master.Master, logging to /opt/spark/logs/spark–org.apache.spark.deploy.master.Master-1-e6b8f9219a40.out failed to launch: nice -n 0 /opt/spark/bin/spark-class org.apache.spark.deploy.master.Master –host e6b8f9219a40 –port 7077 –webui-port 8080 nohup: can't execute '–': No such file or directory full log in /opt/spark/logs/spark–org.apache.spark.deploy.master.Master-1-e6b8f9219a40.out *与文章唯一区别是我使用了高山linux,哪些是被限制的。 validation我试图猫的日志文件..并得到了同样的错误。 在docker中的高山linux是不承认“ – ”。我做错了什么? [已解决]谢谢罗伯特。 如果有人在寻找答案,请在您的docker文件中添加以下内容 RUN apk update && apk upgrade && apk add curl […]

由于缺less编译器错误导致的Python和高山故障

我正在寻找与python3和crontab的docker图像。 当我使用python:latest作为基础时,我没有cron,但是所有需要的python包安装都没有问题。 当我使用阿尔卑斯山作为基地,我有(busybox)cron工作,但由于编译器错误无法安装特定的python包。 当我使用python:alpine时也是如此 收集pynacl> = 1.0.1(从paramiko – > – r required_python_packages.txt(第6行))下载PyNaCl-1.1.2.tar.gz(3.1MB)完整的输出从命令python setup.py egg_info: No working compiler found, or bogus compiler options passed to the compiler from Python's distutils module. See the error messages above. 有什么build议吗?