Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Perl 未能在Docker容器内安装Starman_Perl_Docker - Fatal编程技术网

Perl 未能在Docker容器内安装Starman

Perl 未能在Docker容器内安装Starman,perl,docker,Perl,Docker,我正在尝试使用starman perl服务器为应用程序创建Docker容器 因此,我的Dockerfile如下所示: FROM perl:latest MAINTAINER perl5 drd.trif@gmail.com RUN curl -L http://cpanmin.us | perl - App::cpanminus RUN cpanm Carton Starman RUN cachebuster=b953b35 git clone -b pb_on_doc

我正在尝试使用starman perl服务器为应用程序创建Docker容器

因此,我的Dockerfile如下所示:

FROM        perl:latest
MAINTAINER  perl5 drd.trif@gmail.com
RUN curl -L http://cpanmin.us | perl - App::cpanminus


RUN cpanm  Carton Starman


RUN cachebuster=b953b35 git clone -b pb_on_docker --single-branch https://github.com/DragosTrif/PearlBee.git

RUN cd PearlBee && carton install  && carton install --deployment 
EXPOSE 8080
WORKDIR PearlBee

CMD carton exec starman --port 8080 bin/app.psgi
但它没有安装Starman

我检查了
build.log
,发现了以下错误:

2016/09/27-08:18:16 Starman::Server (type Net::Server::PreFork) starting! pid(13467)
Missing port in hashref passed in port argument.
2016/09/27-08:41:17 Starman::Server (type Net::Server::PreFork) starting! pid(13468)
Missing port in hashref passed in port argument.

我如何解决这个问题?

我编辑了我的帖子并添加了我的Dockerfile。所以
Starman
Net::Server
中有一些一般性问题,比如
PearlBee
PearBee
应该是你的
运行中的
WORKDIR
行中的相同内容吗?是的,我编辑了以修复打字错误。