Forums

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

--privileged not working on a self hosted runner.

Alan Pritchard
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!
October 13, 2025

I'm trying to use the --privileged tag on a self hosted runner but I keep getting an error stating that it's not allowed.  I've run the same step on bitbucket's docker and it runs fine.  To keep things basic, I'm currently using code cut and pasted from the support page detailing the use of runtime v3.  The only difference I can see is that my runners keep insisting on downloading bitbucket-pipelines-docker-daemon   v25.0.5 while on the hosted environment it appears to be running docker v28.5.1

My bitbucket-pipelines.yml is as follows:

options:
  runtime:
    cloud:
      version: "3"

pipelines:
  custom:
    privileged-docker-run:
        - step:
              runtime:
              cloud:
                 version: 3
              image: atlassian/default-image:5
              runs-on:
                - 'self.hosted'
                - 'linux'
              services:
                - docker
              script:
                - docker version
                - docker info
                - docker run --privileged alpine:3 sh -c "echo 20 > /proc/sys/vm/swappiness && cat /proc/sys/vm/swappiness"

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events