sudodocker运行:未绑定的variables错误

我在我的Linux笔记本电脑上安装了docker.io,并在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 。