【问题标题】:How to run an image of Docker above databricksConnectDocker without error "tiny"如何在 databricksConnectDocker 上运行 Docker 映像而不会出现错误“tiny”
【发布时间】:2020-09-25 11:59:13
【问题描述】:

当我在 databricksConnectDocker 上运行图像时,我得到了这个:

tini (tini version 0.16.1 - git.0effd37)
Usage: tini [OPTIONS] PROGRAM -- [ARGS] | --version

Execute a program under the supervision of a valid init process (tini)

Command line options:

  --version: Show version and exit.
  -h: Show this help message and exit.
  -s: Register as a process subreaper (requires Linux >= 3.4).
  -v: Generate more verbose output. Repeat up to 3 times.
  -g: Send signals to the child's process group.
  -l: Show license and exit.

Environment variables:

  TINI_SUBREAPER: Register as a process subreaper (requires Linux >= 3.4)
  TINI_VERBOSITY: Set the verbosity level (default: 1)

然后关闭。

这是我的 dockerfile:


FROM datathirstltd/dbconnect:71.0

ENV PYTHONPATH .

RUN mkdir /x

WORKDIR /x

COPY . /x

RUN pip install -r requirements.txt

然后,我创建图像: docker build --tag X1.0 .

并尝试启动一个容器: docker run --name X_container X:1.0

这是我的错误。

知道它可能是什么吗?正常吗?

【问题讨论】:

  • 图片的默认命令是什么? (您的 Dockerfile 中没有 CMD;我不知道该基本映像是否提供了一个。)
  • RUN pip install -r requirements.txt 可以是一个命令。
  • pip install 几乎总是您在映像构建期间使用的 RUN,而不是稍后启动容器时会运行的 CMD

标签: docker databricks-connect


【解决方案1】:

我已经和制作这个 docker 镜像的人讨论过了。答案如下:“您可能需要进行一些修改才能自己直接运行它(我从未尝试过)。它确实设计为在 VSCode 中作为 devcontainer 运行 - 请参阅自述文件中的说明”。

意思是:

  • 是的,它不起作用。
  • 是的,不工作很正常。

我有我的答案。

【讨论】:

    猜你喜欢
    • 2022-08-10
    • 2020-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多