forked from mirror/MCSM-Daemon
允许额外挂载路径指定 option 片段
volume-name:container-dest[:options]
This commit is contained in:
parent
04f66d4ee3
commit
e3430f670d
@ -132,8 +132,9 @@ export default class DockerStartCommand extends InstanceCommand {
|
||||
for (const it of extraVolumes) {
|
||||
if (!it) continue;
|
||||
const element = it.split(":");
|
||||
if (element.length != 2) continue;
|
||||
let [hostPath, containerPath] = element;
|
||||
if (element.length < 2) continue;
|
||||
let hostPath = element[0];
|
||||
let containerPath = element.slice(1).join(":");
|
||||
|
||||
if (path.isAbsolute(containerPath)) {
|
||||
containerPath = path.normalize(containerPath);
|
||||
|
Loading…
Reference in New Issue
Block a user