Skip to content

Commit cf2371f

Browse files
authored
Restart docker container on exit (#23)
1 parent dd1100b commit cf2371f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/flex/mounter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ func (m *Mounter) createV3IOFUSEContainer(spec *Spec, targetPath string) error {
121121
args := []string{
122122
"run",
123123
"--detach",
124-
"--rm",
125124
"--privileged",
126125
"--name",
127126
containerName,
128127
// TODO: discover if infiniband exists and pass this
129128
// "--device",
130129
// "/dev/infiniband/uverbs0",
130+
"--restart",
131+
"always",
131132
"--device",
132133
"/dev/fuse",
133134
"--net=host",

0 commit comments

Comments
 (0)