Forums

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

Mount a Windows fileshare within a self-hosted runner using CIFS

Ryan Taylor
Contributor
October 20, 2025

We've configured a linux docker self hosted runner in our environment and need to move build artifacts from the docker container to a windows file share. We do not have ssh or sftp available and cannot use those utilities at this time.

I attempted to mount the windows file share using CIFS as we do something similar on our windows containers (in Jenkins) using net use.

mount -t cifs \
  -o username=your_user,password=your_password,domain=your_domain \
  //your/file/share \
  /mnt/share

However, this does not seem possible as I am getting the following error:

Unable to apply new capability set.

How can I mount my windows file share within a self-runner linux docker container?

Update 2025/10/11: 

It appears this this may now be possible with Runtime v3 with the Privileged flag but I'm still not sure on a couple things.

  1. Does this mean I am running a docker container instead a docker container?
  2. Is there no way to run the "top" container in privileged mode in my own self hosted runner?

#2 with something like `privileged: true` would be beneficial as I could run multiple steps in the privileged container via the scripts property(ies) rather than encoding them in the docker run command itself (which may be rather long when I have multiple steps).

 

1 answer

0 votes
Ryan Taylor
Contributor
October 21, 2025

It appears this this may now be possible with Runtime v3 with the Privileged flag but I'm still not sure on a couple things.

  1. Does this mean I am running a docker container instead a docker container?
  2. Is there no way to run the "top" container in privileged mode in my own self hosted runner?

#2 with something like `privileged: true` would be beneficial as I could run multiple steps in the privileged container via the scripts property(ies) rather than encoding them in the docker run command itself (which may be rather long when I have multiple steps).

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events