Skip to content

Commit 2eeed84

Browse files
ulyssessouzandeloof
authored andcommitted
Fix pause/unpause by only applying to running containers
Signed-off-by: Ulysses Souza <[email protected]>
1 parent 10ca031 commit 2eeed84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/compose/pause.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (s *composeService) Pause(ctx context.Context, project string, options api.
3333
}
3434

3535
func (s *composeService) pause(ctx context.Context, project string, options api.PauseOptions) error {
36-
containers, err := s.getContainers(ctx, project, oneOffExclude, true, options.Services...)
36+
containers, err := s.getContainers(ctx, project, oneOffExclude, false, options.Services...)
3737
if err != nil {
3838
return err
3939
}
@@ -61,7 +61,7 @@ func (s *composeService) UnPause(ctx context.Context, project string, options ap
6161
}
6262

6363
func (s *composeService) unPause(ctx context.Context, project string, options api.PauseOptions) error {
64-
containers, err := s.getContainers(ctx, project, oneOffExclude, true, options.Services...)
64+
containers, err := s.getContainers(ctx, project, oneOffExclude, false, options.Services...)
6565
if err != nil {
6666
return err
6767
}

0 commit comments

Comments
 (0)