Hi, can anyone help me how to configure my self.hosted linux docker. It has 64GBs of RAM and 12c/24t CPU and it keeps on telling me that the build is running out of memory (Service 'docker' exceeded memory limit.) when I ran the docker build. Here is a sample of my configuration:
```yml
definitions:
services:
docker:
memory: 1024
docker-build:
memory: 5120
type: docker
steps:
- step: &docker-build
name: Docker Build
runs-on:
- self.hosted
- linux
services:
- docker-build
caches:
- docker
size: 8x
script:
- IMAGE_NAME=$BITBUCKET_REPO_SLUG-$BITBUCKET_BRANCH
- docker build . --file Dockerfile --tag ${IMAGE_NAME}
- docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
artifacts:
- "*.tar"
pipelines:
pull-requests:
'**':
- step: *docker-build
```