Docker timeout for container?

后端 未结 4 1689
旧巷少年郎
旧巷少年郎 2021-01-31 09:18

For my dissertation at University, I\'m working on a coding leaderboard system where users can compile / run untrusted code through temporary docker containers. The system seems

4条回答
  •  情书的邮戳
    2021-01-31 09:39

    I guess, you can use signals in python like unix to set timeout. you can use alarm of specific time say 50 seconds and catch it. Following link might help you. signals in python

提交回复
热议问题