Container 'docker' exceeded memory limit while running bitbucket pipeline

Hi,
I am seeing bitbucket pipeline error - container ‘docker’ exceeded memory limit while running bitbucket pipeline. I tried to use all possible service memory limits as per below documentation, but issue was not resolved. I allocated 3072 MB for Docker service in pipeline yaml file, but still getting error.
https://confluence.atlassian.com/bitbucket/use-services-and-databases-in-bitbucket-pipelines-874786688.html#UseservicesanddatabasesinBitbucketPipelines-Servicememorylimits

Can you help resolve the issue?

Hi Sathish,
I am facing the same CONTAINER EXCEEDED MEMORY LIMIT ISSUE while running the bitbucket pipeline. If this issue is resolved to you, can you please help me out with the solution. Thanks