Subject: Middleware or Tools for Deploying Windows-Based Code in Docker Containers and VMware Ubuntu

Q.1) Does a developer need to write code on a Linux-based system to deploy Python or any other code via a Docker container?

Q.2) My web application code runs on Windows, but when I try to deploy the same code via a Docker container, it does not work. Is there any middleware, tool, or package available to deploy Python or any other code in a Docker container?

Q.3) Is there any middleware, tool, or package available to deploy Windows-based code in a Docker container or on a VMware Ubuntu VM?

Q.4) Scenario: A developer writes code (Python, Java, etc.) and runs it successfully on their PC. Then, the code is sent for deployment. A DevOps engineer takes the code and starts the deployment process. Is there any middleware, tool, or package available for containerization to facilitate the deployment of the developer’s code?

– Please anyone give me answer of this question to help! me.
– To reach me my mail id is ’ rohidas_mugale@quantuma.ai ’
Thank You


Your question here is based on a misunderstanding in the other topic I guess. Where I replied since then

To reply your questions here:

You can run Linux containers on Linux and Windows containers on Windows. Docker Desktop let’s you create a Linux virtual machine to run Linux containers inside that VM. It doesn’t matter where you develop, but you have to make sure your code works on the chosen platform. If you never tried a code on Linux, only on Windows, the problem could be the incompatibility of your app. You need a Python developer to tell you if a Python code or library is supported correctly on another platform

Sometimes your code doesn’t work in a Linux container even if it works on a Linux host, since a container is an isolated system with limited rights for security reasons, and in many cases, you need to develop your app differently to be able to run it in containers, so yes, it is best if you test it in containers from the beginning even during development, but your physical host doesn’t have to be Linux if you are using a Linux virtual machine like the one provided by Docker Desktop.

Of course you can still have problems when you edit a file in a file editor that saves Windows-compatible line endings which is not compatible with Linux. So when you develop for Linux, using LF instead or CRLF is better. LF is usually understood by interpreters on Windows too and by code editors.

2 Likes

Thank you! This is a very informative answer from you. Thanks for your help in understanding me.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.