简体   繁体   English

无法从Apache-Superset容器(tar文件)映像启动容器(无法连接到本地主机端口)

[英]Unable to start container from Apache-Superset container (tar file) image (Failed to connect to localhost port)

I'm quite new to Docker and Apache-Superset and trying to run a container (using docker) from the container image. 我对Docker和Apache-Superset很陌生,并尝试从容器映像运行容器(使用docker)。 Loaded the .tar file with 用.tar文件加载

docker load --input ./inc_superset.tar

Which went as expected, tried running the container from this image file with 哪个按预期进行,尝试使用以下命令从此映像文件运行容器

docker run --cidfile ./cid.txt <IMAGE_ID>

This starts my container but is has unhealthy status; 这会启动我的容器,但状态不健康; upon inspecting the container ( with docker inspect) I get a huge JSON, below is a snippet of the log received (can post the entire log on request). 在检查容器后(使用docker inspect),我得到了一个巨大的JSON,下面是接收到的日志的片段(可以应要求发布整个日志)。

"Health": {
  "Status": "unhealthy",
  "FailingStreak": 5,
  "Log": [
    {
      "Start": "2019-01-22T19:59:00.8036984+05:30",
      "End": "2019-01-22T19:59:01.5698797+05:30",
      "ExitCode": 7,
      "Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused\n"
    },
    ...
    ...
    {
      "Start": "2019-01-22T20:01:02.589517677+05:30",
      "End": "2019-01-22T20:01:02.794486003+05:30",
      "ExitCode": 7,
      "Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused\n"
    }
  ]
}

Am I making any mistake? 我有什么错误吗? Am I missing something? 我想念什么吗? Any troubleshooting help on this requested. 要求的任何故障排除帮助。

Thanks 谢谢

The problem was the webserver within the superset container doesn't run by default as of the configuration available on apache.org as of 7 September 2019. 问题是截至2019年9月7日,超集容器中的Web服务器默认未运行,直到apache.org上可用的配置为止。

Solved it as follows: 解决方法如下:

#Go into the container
docker-compose exec superset bash
#Start the webserver that is exposed on all interfaces so that we can access it from docker host
superset run -p 8088 --host 0.0.0.0

I was facing the same issue. 我面临着同样的问题。 Ran via docker-compose using the instructions on https://superset.incubator.apache.org/installation.html but get no response from localhost:8088. 使用https://superset.incubator.apache.org/installation.html上的说明通过docker-compose运行,但没有收到来自localhost:8088的响应。

Docker inspect State.Health.Status = "unhealthy" and log show several entries with curl: (7) Failed to connect to localhost port 8088: Connection refused\\n" Docker检查State.Health.Status =“ unhealthy”并通过日志显示多个带有curl的条目:(7)无法连接到本地主机端口8088:连接被拒绝\\ n“

docker ps shows that the container is exposed on 0.0.0.0:8088 docker ps显示容器在0.0.0.0:8088上公开

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 apache-superset 与 apache-drill 连接起来? - How to connect apache-superset with apache-drill? 无法从 docker 容器连接到机器的本地主机 - Unable to connect to localhost of machine from docker container 从另一个容器调用 API 时出现错误“cURL 错误 7:无法连接到 localhost 端口” - Getting error "cURL error 7: Failed to connect to localhost port" when calling API from another container 当network_mode:“bridge”(docker-compose)时,无法从localhost连接容器端口 - Unable to connect container port from localhost when network_mode: “bridge” (docker-compose) Prisma 无法从另一个 docker 容器连接 localhost:4466 - Prisma failed to connect localhost:4466 from another docker container 无法使用GCP Container Registry中的图像启动Docker容器 - Failed to start Docker container with image from GCP Container Registry 无法从我的本地主机 (Windows) 连接 Postgres Docker 容器 - Unable to connect a Postgres Docker Container from my localhost (Windows) 无法连接到Apache Docker容器 - Unable to Connect to Apache Docker Container 将Docker容器端口连接到服务器的apache端口(odoo容器) - Connect Docker Container port to server's apache port (odoo Container) 由于使用 Docker 的 PostgresDB 连接失败,无法启动 Apache Superset - Unable to start Apache Superset due to failed PostgresDB connection using Docker
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM