如何 运行 databricksConnectDocker 上方 Docker 的图像没有错误 "tiny"

How to run an image of Docker above databricksConnectDocker without error "tiny"

当我 运行 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

这是我的错误。

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

我已经与制作此 docker 图片的人讨论过。答案如下:“您可能需要自己直接对 运行 进行一些修改(我从未尝试过)。它确实被设计为 运行 作为 VSCode 中的 devcontainer - 请参阅自述文件中的说明。

意思是:

  • 是的,它不起作用。
  • 是的,没效果很正常

我有我的答案。