Run docker command by qt button
Solved
General and Desktop
-
I have alrady run a linux docker container on my windows system. Now I wan to use some button to run some commands easily. I want to press a "start" button to quickly get in my container just like use "docker exec" in cmd, then press another button to activate python environment and run some python file. Can someone give me some suggestions?
-
@azys233 said in Run docker command by qt button:
I want to press a "start" button
Where? Do you mean you want to write a Qt application where you can press a button to execute "docker exec"?
If so, where exactly do you need support? Use QPushButton and https://doc.qt.io/qt-6/qprocess.html to execute external processes. -