Add note about default ACL for Docker mount dir

This commit is contained in:
Sebastian Serth
2021-11-08 22:28:59 +01:00
parent 5401ebb54d
commit 1dce6c59ab
7 changed files with 24 additions and 12 deletions

View File

@ -179,10 +179,10 @@ class Runner::Strategy::DockerContainerPool < Runner::Strategy
end
def clean_workspace
FileUtils.rm_r(local_workspace_path.children, secure: true)
FileUtils.rm_r(local_workspace_path.children, force: true)
rescue Errno::ENOENT => e
raise Runner::Error::WorkspaceError.new("The workspace directory does not exist and cannot be deleted: #{e.inspect}")
rescue Errno::EACCES => e
rescue Errno::EACCES, Errno::EPERM => e
raise Runner::Error::WorkspaceError.new("Not allowed to clean workspace #{local_workspace_path}: #{e.inspect}")
end