host -unknown使用docker-compose和jitsi-meet

时间:2017-10-23 13:02:08

标签: docker docker-compose jitsi

我的目标是在我的CentOS上运行jitsi-meet和另一个docker容器。为此,我创建了一个docker-compose.yml文件:

version: '2'

services:

    jitsi-meet:
        image: robertoandrade/jitsi-meet
        container_name: jitsi-meet
        hostname: 192.168.5.169
        restart: always
        ports:
          - "443:443

当我使用docker-compose运行时,我收到以下错误消息:

JVB 2017-10-23 12:20:33.925 INFO: [10] org.jitsi.videobridge.octo.OctoRelay.start().106 Octo relay not configured.
JVB 2017-10-23 12:20:33.964 SEVERE: [27] org.jitsi.meet.ComponentMain.call().278 host-unknown, host:localhost, port:5347
org.xmpp.component.ComponentException: host-unknown
         at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:219)
         at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:221)
         at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:201)
         at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:270)
         at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:255)
         at org.jitsi.retry.RetryStrategy$TaskRunner.run(RetryStrategy.java:193)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
         at java.lang.Thread.run(Thread.java:748)
 JVB 2017-10-23 12:20:34.042 INFO: [14] org.ice4j.ice.harvest.MappingCandidateHarvesters.initialize() Initialized mapping harvesters (delay=652ms).  stunDiscoveryFailed=false

当我用 docker run -it --name jitsi-meet -p 443:443 robertoandrade / jitsi-meet 运行图像时,我得到一个主机名的输入提示,它开始完美无缺。 / p>

尝试使用" stdin_open:true"和" tty:true"正如马特所说。

注意:我按照PuTTY ssh进行操作。

结果:

unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
c.d: policy-rc.d denied execution of stop.
ing jitsi-videobridge
-----------------------------

The jisti-videobridge package needs the DNS hostname of your instance.

如何使用docker-compose工作?

我更喜欢没有手动输入的解决方案。

1 个答案:

答案 0 :(得分:0)

看起来docker镜像需要用户输入才能启动,这就是import org.apache.spark.sql.functions._ import org.apache.spark.sql.expressions.Window def windowSpec = Window.partitionBy("Category") val tempdf = df.groupBy("Status", "Category").agg(count("Category").as("ind_count")) .withColumn("tot_count", sum("ind_count").over(windowSpec)) tempdf.filter($"Status" === "y").select($"Status", $"Category", (($"ind_count"/$"tot_count")*100).as("y_percentage")).show(false) 命令中使用-i-t的原因。

docker run保持标准输入打开。 -i为进程分配一个伪tty,因此它认为有一个控制台

The stdin_open and tty options can be set in a compose file也是。

-t

通常,服务不需要输入,因此可以在后台运行。 大多数容器映像会设置环境变量或配置文件来设置主机名等配置选项。