无法在Windows 10的Docker上运行Bamboo构建规范

时间:2019-06-10 14:43:58

标签: java docker bamboo

当我在Docker容器中运行过程Bamboo生成规范时,我遇到有关路径丢失/无效的错误。

我在Bamboo 6.9.1计算机上本地安装了Windows 10

Docker 18.09.2 with Hyper-V containers (default option)

docker设置:

在不带TLS的端口2375上公开守护程序

-本地驱动器C:与容器共享

在Bamboo中-存储库“存储的规格”安全设置: 启用存储库存储规范-已选中

在Docker中检查处理的竹子规范

Docker image(必填):'atlassian / bamboo-specs-runner:6.9.1'。

当我尝试处理构建规格时,出现错误:

Processing Specs within Docker containerUnable to scan repository bamboo-specs gh (753665) for Bamboo Specs
com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository bamboo-specs gh (753665) for Bamboo Specs
    at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$9(RepositoryStoredSpecsServiceImpl.java:864)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
    at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
    at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
    at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
    at java.lang.Thread.run(Thread.java:748)
Caused by: com.spotify.docker.client.exceptions.DockerRequestException: Request error: POST http://localhost:2375/containers/create?name=bamboo-specs-685e946f-716d-4b1d-a92e-35c3aa66aa42: 400, body: {"message":"the working directory '\\mnt\\input' is invalid, it needs to be an absolute path"}

1 个答案:

答案 0 :(得分:0)

请向开发团队确认Windows上的Docker是否受支持。 Windows确实支持Windows,但它需要不同的图像,并且Bamboo服务器代码也需要调整。