[Python] Run a python script directly on my docker container host machine

Discussão em 'Python' iniciado por Stack, Fevereiro 24, 2025.

  1. Stack

    Stack Membro Participativo

    i'm making a python project with movie py and torch, i've tried to containerize it to have it run once on startup of my pc with Docker but I was not successful, and everything is working already on my PC. I would like to know if it is possible for my docker container to call my python script from my PC and run it with the python.exe interpreter in the venv folder of that project so basically just make the container execute C:\user\my_project\venv\python.exe C:\user\my_project\main.py and use all the environnement variables form my external env like using the scripts in PATH. thanks

    Continue reading...

Compartilhe esta Página