Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to use WSL as runner ?


I am testing various things on pipelines to decide whether or not we will use it as CI tool for my company.

I am wondering if it is possible to use WSL as runner for compilation step. 

We have a windows based compilation toolchain which include licenced compiler so it is impossible to switch to linux for now.

WSL seems like a promising way to link bitbucket pipeline runners and our toolchain. 

The problem is that we must specify a docker image for the runner. Is it possible to use WSL as linux environment AND then as docker image for the runner ? 

If not, is it possible to not specify any docker image and run directly the scripts in wsl ?


I am not an expert in docker images and continuous integration so maybe there are some things I do not see. Please enlight me :) 


Thanks a lot 


2 answers

0 votes
Dmitry I'm New Here Jan 08, 2022

Self-hosted runners work with DockerDesktop on Windows (on WSL), but log files from containers are not available due to another log file location in DockerDesktop (and they are not accessible from WSL runner). I hope this will be fixed.. in some way.

0 votes

Hi Thomas and welcome to the community!

Do you need to run your builds on a Windows host?

If so, we have an Early Access Program for Widnows runners. You can see more details here:

There is a link in that post to sign up if you'd be interested and would like to try it.

I'm not sure if it's possible to use WSL as a linux environment for the runner, I would need to test this and check with my team internally, and I'll let you know.

Kind regards,

Hi @Thomas Cangialosi and @Dmitry,

I have checked with my team and our pipelines runners are designed for an actual Linux system, we have not tested it thoroughly with WSL2.

One issue we have seen, as Dmitry mentioned, is that the container log cannot be found, because the Docker command for starting the runner is meant for Docker that runs on a Linux system, which stores the container log under `/var/lib/docker/containers` directory.

I have created a feature request to add support for runners on WSL:

I would suggest adding your vote in that feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy here and any updates will be posted in the feature request.

Please feel free to let me know if you have any questions.

Kind regards,

Dmitry I'm New Here Jan 18, 2022

Hello! Thank you for answer, that's a good option. I've added my vote.

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,487 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you