diff --git a/daemon/container_init.go b/daemon/container_init.go index d7e6d24..b04d534 100644 --- a/daemon/container_init.go +++ b/daemon/container_init.go @@ -88,7 +88,8 @@ func handleCopyIn(s *unixsocket.Socket, cmd *Cmd, msg *unixsocket.Msg) error { } defer inf.Close() - outf, err := os.OpenFile(cmd.Path, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0666) + // have 0777 permission to be able copy in executables + outf, err := os.OpenFile(cmd.Path, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0777) if err != nil { return sendErrorReply(s, "copyin: open write file %v", err) }