gpt4 book ai didi

docker - 须藤 docker 运行: unbound variable error

转载 作者:行者123 更新时间:2023-12-02 21:29:15 24 4
gpt4 key购买 nike

我在我的 Linux 笔记本电脑上安装了 docker.io 并做了一个 docker pull在 docker 网站上公开可用的容器上。

我正在尝试使用以下命令以交互方式运行它,但出现错误:

sudo docker pull nucleotides/sga
sudo docker run -i nucleotides/sga /bin/bash

+ set -o nounset
/usr/local/bin/run: line 9: $2: unbound variable

有任何想法吗?

最佳答案

该图像由用户提供,而不是 Docker 本身。

它使用一个入口点脚本,解释你的 /bin/bash命令作为第一个参数。您可以在此处查看脚本:https://github.com/nucleotides/docker-sga/blob/master/run .它具有以下有关参数的信息:

# The first argument is the location of the reads in the container filesystem.
# The will be present in a read-only directory
READS=$2

# The second argument is a directory with write-access where the final
# assembly should be written to.
DIR=$3

公平地说,这个脚本没有遵循最佳实践,以这种方式吞噬输入非常令人困惑。有关最佳实践的更多信息,请参阅文档: https://docs.docker.com/articles/dockerfile_best-practices/#entrypoint .

关于docker - 须藤 docker 运行: unbound variable error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27669402/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com