Skip to content

Commit

Permalink
fix: some app failed to share data by /tmp
Browse files Browse the repository at this point in the history
Temporarily mount the host /tmp into the container.
backport from dd39a06

Log:
  • Loading branch information
kamiyadm committed Dec 12, 2023
1 parent 80644d7 commit 9bdd503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module/runtime/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,9 @@ class AppPrivate
}
QPointer<Mount> m(new Mount(r));
m->type = "bind";
m->source = tmp.absolutePath();
// m->source = tmp.absolutePath();
// quickfix: mount host /tmp into container
m->source = tmpPath;
m->destination = tmpPath;
m->options = QStringList({ "rbind" });
r->mounts.push_back(m);
Expand Down

0 comments on commit 9bdd503

Please sign in to comment.