我正在使用Docker和Jenkins运行Rspec测试,我收到了这个间歇性的错误:
[workspace] $ /bin/bash /tmp/hudson4240670520825002309.sh
2014/06/26 09:59:20 Error response from daemon: Cannot start container 9bc43e4695ddb8eaf87487d77cbec6175047936a01c8288a6aea1db35f760152: lstat /dev/disk/by-id/dm-name-docker-202:16-722147-d8487a48f2b3ce220752c594cc499130a29807656c61eb210d24a6a7ce12832d-init: no such file or directory
Build step 'Execute shell' marked build as failure
此错误只需要大约30秒,因此它几乎没有启动测试套件。当它工作时,输出如下所示:
[workspace] $ /bin/bash /tmp/hudson2461424205491831045.sh
Starting supervisor: supervisord.
app.rb start
Bundler start
Jenkins运行的脚本非常简单:
docker run --rm=true -t --privileged=true -v ${WORKSPACE}:/www/app myapp "bundle exec rspec spec/
为什么这可能会偶尔失败的任何想法?