Docker timeout for container?

后端 未结 4 1600
旧巷少年郎
旧巷少年郎 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:38

    If you want to run the containers without providing any protection inside them, you can use runtime constraints on resources.

    In your case, -m 100M --cpu-quota 50000 might be reasonable.

    That way it won't eat up the parent's system resources until you get around to killing it.

提交回复
热议问题