Tag: 泊坞

requirements.txt中的依赖关系未安装

我需要部署一个烧瓶应用程序到谷歌应用程序引擎。 我使用docker和线路在Dockerfile中: ADD requirements.txt /app/requirements.txt RUN pip install -r /app/requirements.txt 在requirements.txt文件中: Flask==0.12 gunicorn==19.6.0 boto==2.46.1 gcs-oauth2-boto-plugin==1.8 ffmpeg-normalize 它应该安装所有的依赖关系。 但不知何故“ffmpeg正常化”没有安装在谷歌应用程序引擎实例。 任何人都可以帮助我吗? 如果还有另一种更好的方式来安装软件包,我也会很乐意去做。 谢谢!!

docker-compose in windows:Unsupported config option for services:'web'

我试图设置我的第一个泊坞窗撰写完整的应用程序,我创build了一个依赖于mongodb的弹簧启动应用程序。 所以,我在Dockerfile的相同级别的代码的根目录下创build了一个docker-compose.yml文件。 当我使用gradlew build buildDocker时创build图像进行得很好,图像被创build,我可以运行它(但它失败,因为它无法打开MongoDB连接)。 所以,我这样创build了docker-compose.yml: services: web: build: . ports: – "8082:8082" links: – mongo mongo: environment: spring.data.mongodb.host: localhost spring.data.mongodb.port: 27017 spring.data.mongodb.database: Transactions spring.data.mongodb.username: someUsername spring.data.mongodb.password: somePassword image: "mongo:3.4" 但是,当我执行docker-compose up命令时,我得到这个错误: Unsupported config option for services: 'web' 我正在使用Windows 10作为操作系统,并且docker-compose version 1.14.0, build c7bdf9e3是docker-compose version 1.14.0, build c7bdf9e3 问题:有谁知道我需要如何设置docker-compose.yml文件才能收到错误信息?

将瓶子应用程序连接到在docker容器中运行的postgresql服务

我有一个使用PostgreSQL作为后端数据库的Flask应用程序。 我已经安装了Postgresql作为dockerized服务(使用docker-compose)。 我现在在我的机器上成功运行postgresql。 我input了所有相关的详细信息以连接到数据库(用户,pwd,dbname,服务器地址,服务器端口),但无法连接。 当我尝试连接到数据库时,在Flask(来自psycopg2)中抛出一个exception: conn = _connect(dsn, connection_factory=connection_factory, **kwasync) OperationalError: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? 当我检查postgresql是否正在运行时,我收到以下消息: $ service postgresql status ● postgresql.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) 在阅读了关于Docker和PostgreSQL的更多信息后,我开始理解为什么我不能连接 – 因为postgresql运行在自己的容器中 […]

Google App Engine灵活设置中的应用内存不足

我正在开发一个托pipe在Google App Engine Flexible Environment中的Scala / PlayFramework应用程序,所以我使用Docker。 我的应用程序不时崩溃,因为它运行内存不足,但它不是java.lang.OutOfMemoryError。 Docker似乎有些问题。 我也尝试在不使用Docker的情况下在本地运行应用程序,它工作正常,没有观察到内存泄漏。 也许有人可以帮我读这些日志,解密他们,并找出如何解决这个问题: 15:31:41 OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode) 15:31:41 OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-1~bpo8+1-b11) 15:31:41 jvm_internals.cc:376] Loading internals from /opt/cdbg/cdbg_java_agent_internals.jar 15:31:41 jvmti_agent_thread.cc:99] Agent thread started: CloudDebugger_main_worker_thread 15:31:41 jvmti_agent.cc:213] JvmtiAgent::JvmtiOnVMInit initialization time: 249286 microseconds 15:31:40 Java VM started 15:31:40 Java debuglet initialization completed 15:31:40 […]

在Apalis imx6上安装docker?

我发现了以下博客: https://blog.alexellis.io/get-started-with-docker-on-64-bit-arm/ https://www.berthon.eu/2017/a-time-server-in-a-container-part-1/ 但是他们并不属于Apalis,因此不为我工作,我得到各种不兼容性的错误,有没有关于如何让docker在apalis上运行的信息? 谢谢!

运行Bottle(后端)+ Google App Engine上的Nodejs(前端)

我有我的Python /瓶后端在应用程序引擎上运行,并决定使用前端Nodejs /烬。 我还没有使用过很多Google云,但托pipe虚拟机testing似乎允许我使用Docker部署我的项目。 问题:我如何在Google云上运行后端和前端,并且可以在同一个项目中运行它? 我还没有find任何文件如何做configuration。 我确定有一个简单的答案,我没有看到。

Docker可以在运行容器时自动将IP地址添加到主机

我在hetzner.de上有一个服务器,有大约16个公共IPv4地址。 现在我正在运行这样的容器: sudo docker run -d –name test6 -it -p 5.1.2.3:80:80 sunebeck/apache-php 这将最初产生这个错误: Error starting userland proxy: listen tcp 5.1.2.3:80: bind: cannot assign requested address. 通过手动添加主机上的IP地址来修复这个问题: ip addr add 5.1.2.3 dev eth0 之后,它按照预期工作,服务在5.1.2.3中作为端口80公开。 不过手动pipe理这个有点麻烦。 Docker能否根据需要自动添加/删除主机的IP地址?

如何确定使用PDF进行图像转换的颜色空间?

我有一个简单的脚本,将PDF文件转换成PNG文件。 它基本上运行这个convert命令: convert -strip -quiet -quality 100 -alpha off -density 165% -scene 1 -colorspace sRGB "/data/input.pdf" "/output/image.png" 然而,我有这样一个白色的背景这个特殊的PDF文件: 结果如下所示: 你可以看到白色的背景变成了黑色。 我可以通过简单地将参数切换到-colorspace cmyk来修复它 我在文件上运行identify ,但它不表示cmyk > identify /data/input.pdf /data/input.pdf PDF 1920×1080 1920×1080+0+0 16-bit sRGB 2.07246MiB 0.000u 0:00.000 我的问题是: 我怎么知道什么时候使用sRGB空间(这个工作直到这个文件出现)以及何时使用cmyk? 编辑: 该文件可以在这里查看 ImageMagick版本信息 > convert –version Version: ImageMagick 6.9.9-19 Q16 x86_64 2017-10-24 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick […]

build立一个docker图像不会停止,因为我的世界服务器继续运行

所以我一直在努力学习docker几天,为我设定了第一个目标。 我想在docker集装箱内运行一个龙头服务器,然后在路上将它与一个BungeeCordnetworking结合起来。 我遇到了问题。 我的dockerfile运行没有问题,但一旦达到启动的Minecraft服务器的点,图像停止build设。 我认为这是由于服务器继续运行,而不是返回一个代码0来显示docker继续运行。 我的想法有错,如果不是,我该如何解决这个问题? 这是我的Dockerfile: FROM ubuntu:14.04 RUN apt-get update RUN apt-get install openjdk-7-jre icedtea-7-plugin -y RUN apt-get install wget -y RUN mkdir mc_server && cd mc_server/ RUN wget http://getspigot.org/spigot18/spigot_server.jar RUN java -Xms1536m -Xmx1536m -Dcom.mojang.eula.agree=true -jar spigot_server.jar nogui 这样服务器启动,但docker工人永远不会完成build设。 我希望我明确地解决了我的问题。 问候,乔尔

无法从位于同一局域网中的另一主机ping通泊坞窗容器

我有两个主机,在同一局域网中,都运行docker: 主机A:172.16.0.113 主机B:172.16.0.114 我可以从主机B ping主机A.但是,我不能从主机B ping主机A上的docker容器。 我在docker的默认networking(网桥)中创build了一个运行ubuntu的docker容器。 默认的docker0的IP地址是172.17.0.1。 而主机(172.16.0.113)中的容器(ubuntu)的IP地址是172.17.0.2。 我用的命令是这里: sudo docker run –name container01 -it -p 8080:80 ubuntu /bin/bash 我可以从它的主机,主机A ping container01; 但是我不能ping另一台主机B的container01。注意我已经暴露了container01的端口。 我想当我从主机B ping container01时,数据包被发送到该主机中的一个容器。 但是我想知道如何从主机B连接到主机A的container01。