Skip to content

Commit cc1f938

Browse files
authored
fix: exit on docker client errors. (#838)
1 parent ba30595 commit cc1f938

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/project/service.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ func (s *Service) RunContainer(stop <-chan bool, updates chan<- ServiceRunUpdate
419419
Err: err,
420420
}
421421

422-
return nil
422+
// Failing to create the container is a fatal error so we will return here
423+
return err
423424
}
424425

425426
// defer removing container so logs can be retrieved, used instead of AutoRemove
@@ -444,7 +445,8 @@ func (s *Service) RunContainer(stop <-chan bool, updates chan<- ServiceRunUpdate
444445
Err: err,
445446
}
446447

447-
return nil
448+
// Failing to create the container is a fatal error so we will return here
449+
return err
448450
}
449451

450452
updates <- ServiceRunUpdate{

0 commit comments

Comments
 (0)