Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

EC2 runner IP in docker mode

Dobrisan Gheorghe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 28, 2025

Hello,

I have the following use-case:
I have a self-hosted runner on an EC2. The runner is in docker on that EC2. 
In the pipeline I have one step with "runs-on: test" <- the tag from my runner, and all the required stuff (oidc: true etc).
In the OIDC role for the Bitbucket, in trust policy, I have put a condition that will allow sts assume only from a specific CIDR range (the CIDR of my VPC). It seems that each time I run the pipeline I get a access denied error. 
My question is this: 
If the runner is in docker mode, it will try to leverage the EC2 private IP or it will try to leverage the default docker CIDR (172.17.x.x)? 

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2025

Hi @Dobrisan Gheorghe

Welcome to the community.

Bitbucket Cloud Pipelines Linux-Docker runners will use Docker CIDR as we use public Docker images hosted by Docker Hub.

May I know the exact error message you're getting?

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events