I am making a server that is a code runner that runs on a docker container :
the user send the code and I make a file for it and then run it the problem is when running harmful code.
like if he sends this code :
import os
os.system("rm -rf ./*")
it actually removes the files no matter if i am using gVisor or not .
the installation is set as the documentation says and i am running with the --runtime=runsc
flag
is there a solution or another way to run the code without harming the the container.
Dracule Mihawk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2