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.