Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Run docker command by qt button
Forum Update on Monday, May 27th 2025

Run docker command by qt button

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 139 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    azys233
    wrote on 30 Oct 2023, 09:08 last edited by
    #1

    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?

    J 1 Reply Last reply 30 Oct 2023, 09:13
    0
    • A azys233
      30 Oct 2023, 09:08

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 30 Oct 2023, 09:13 last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • A azys233 has marked this topic as solved on 31 Oct 2023, 00:03

      1/2

      30 Oct 2023, 09:08

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved