In bitbucket-pipelines.yml, I've specified docker service with an allowed memory of 2Gb.
If I run a custom pipeline, then according to the metrics, the docker service is started although that service is not specified in the definition of the custom pipeline.
It seems the docker service is always started. Can I reduce the allowed memory in my custom pipeline? I only need 2 Gb for two specific pipelines.
The docker service is only started if it's explicitly referenced in your build step. This is indicated by a Docker tab present in the build logs.
For example:
The following build will not have the docker service enabled:
definitions:
services:
docker:
memory: 2048
pipelines:
branches:
master:
- step:
name: 'Echo Message'
script:
- echo "Welcome to Bitbucket Pipelines!"
This build will have the docker service enabled, however, as the service is being specifically called in the step itself:
definitions:
services:
docker:
memory: 2048
pipelines:
branches:
master:
- step:
name: 'Echo Message'
script:
- echo "Welcome to Bitbucket Pipelines!"
services:
- docker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.