2014-12-27 87 views
0

我在我的Linux笔记本电脑上安装了docker.io,并在Docker网站上公开提供的容器上做了docker pullsudo docker run:未绑定变量错误

我想用下面的命令交互运行,但我得到一个错误:

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 

任何想法?

回答

1

该图像由用户提供,而不是由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