Can travis-ci run docker?

廉价感情. 提交于 2019-12-05 12:54:50

问题


I am unable to run a docker container in a Travis continuous integration job.

https://travis-ci.org/buildbot/buildbot/builds/36547150

pkg/installation_tests/testall.sh
Segmentation Fault or Critical Error encountered. Dumping core and aborting.
pkg/installation_tests/testall.sh: line 16:  7343 Aborted                 docker build $dir
make: *** [docker_install_tests] Error 1

My guess is that there are missing kernel stuff in the travis workers, but it is difficult to tell.


回答1:


As of August 2015, Travis CI officially supports Docker.

See Using Docker in Builds for usage details.




回答2:


Sorry, while we currently support Docker as an alternative virtualization platform, we don't directly support running Docker inside of the current setup, at least directly.

However, there are workarounds that could help you there from the fine folks at Docker themselves: https://github.com/jpetazzo/sekexe




回答3:


In case you have not yet solved the problem yourself, here https://github.com/rocker-org/rocker/blob/56cb59cc262e9d2c02f9e11cfacab65f0b659c5f/.travis.yml#L10-L24 you can find a practical example of the solution suggested above.



来源:https://stackoverflow.com/questions/26098531/can-travis-ci-run-docker

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!