Commit 27371fc7 authored by Samuel GAIST's avatar Samuel GAIST

[dock] Make the container read-only

This avoids accidental writes in the container that
will be lost anyway.
parent 7aa7fea6
......@@ -479,7 +479,7 @@ class Host(object):
limitation is not put in place.
"""
cmd = ["docker", "run", "-tid"]
cmd = ["docker", "run", "--tty", "--interactive", "--detach", "--read-only"]
network = container.network
if network:
......
......@@ -239,4 +239,4 @@ class TestDockerExecution(BaseExecutionMixIn):
result = self.execute("errors/user/single/1/write_error", [{"out_data": 42}])
nose.tools.eq_(result["status"], 1)
nose.tools.assert_true("Permission denied" in result["user_error"])
nose.tools.assert_true("Read-only" in result["user_error"])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment