Skip to content

Commit e1fc278

Browse files
authored
fix tmpfs parser (#439)
1 parent c217554 commit e1fc278

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

driver.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,8 +1524,14 @@ func (d *Driver) containerMounts(task *drivers.TaskConfig, driverConfig *TaskCon
15241524
}
15251525

15261526
for _, dst := range driverConfig.Tmpfs {
1527+
var options []string
1528+
splitTmpfs := strings.SplitN(dst, ":", 2)
1529+
if len(splitTmpfs) > 1 {
1530+
options = strings.Split(splitTmpfs[1], ",")
1531+
}
15271532
bind := spec.Mount{
1528-
Destination: dst,
1533+
Destination: splitTmpfs[0],
1534+
Options: options,
15291535
Type: "tmpfs",
15301536
}
15311537
binds = append(binds, bind)

0 commit comments

Comments
 (0)