Skip to content

Issue with Running Bitbucket Pipeline on Windows Server 2019 to Build Both Windows and Linux Container Images

0

Hi everyone,

I am currently running a Bitbucket pipeline on a Windows Server 2019, which is being used as a runner in Bitbucket. The pipeline involves building Docker images, and we need to build both Windows container images and Linux container images.

The Problem: Docker Desktop does not support Windows Server 2019. I installed Docker using PowerShell commands, but it only supports Windows containers.

Installing Docker using PowerShell:

powershell Copy code Install-WindowsFeature -Name Containers Install-Module -Name DockerMsftProvider -Repository PSGallery -Force Install-Package -Name docker -ProviderName DockerMsftProvider -Force Start-Service docker This setup works, but only for Windows containers.

I need to build both Windows and Linux container images on this Windows Server 2019. Is there any way to enable Docker to build both types of images on Windows Server 2019? Are there any alternative approaches or tools that can be used to achieve this?

Any guidance or solutions would be greatly appreciated.

Thank you!

asked a year ago741 views
1 Answer
0

Hello.

Testing is required, but if you use bare metal instances, you can use Hyper-V, so you may be able to use Linux containers with Docker.
https://aws.amazon.com/jp/blogs/compute/running-hyper-v-on-amazon-ec2-bare-metal-instances/

A similar question was asked in the past, and the answer also introduced a workaround using bare metal instances.
https://repost.aws/ja/questions/QUXvVlG77wQYeuHESK3C_CTg/ec2-windows-server-integrated-with-docker-linux

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.