Fixing Issues with Discovering A Supported Container Runtime Environment

Bitbucket Pipelines

qianmoQqianmoQ· 更新于 2026-10-13· 阅读 2 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Bitbucket Pipelines

To enable access to Docker in Bitbucket Pipelines, you need to add docker as a service on the step.

Furthermore, Ryuk needs to be turned off since Bitbucket Pipelines does not allow starting privileged containers (see Disabling Ryuk). This can either be done by setting a repository variable in Bitbucket's project settings or by explicitly exporting the variable on a step.

In some cases the memory available to Docker needs to be increased.

Here is a sample Bitbucket Pipeline configuration that does a checkout of a project and runs maven:

image: maven:3.6.1

pipelines:
  default:
    - step:
        script:
          - export TESTCONTAINERS_RYUK_DISABLED=true
          - mvn clean install
        services:
          - docker
definitions:
  services:
    docker:
      memory: 2048

评论

登录后参与评论

正在加载评论…