Skip to content

Commit 2e1b710

Browse files
authored
fix: Fix local _SageMakerContainer detached mode (#1374) (#1375)
1 parent 1328e7d commit 2e1b710

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sagemaker/local/image.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,12 +489,9 @@ def _compose(self, detached=False):
489489
os.path.join(self.container_root, DOCKER_COMPOSE_FILENAME),
490490
"up",
491491
"--build",
492-
"--abort-on-container-exit",
492+
"--abort-on-container-exit" if not detached else "--detach", # mutually exclusive
493493
]
494494

495-
if detached:
496-
command.append("-d")
497-
498495
logger.info("docker command: %s", " ".join(command))
499496
return command
500497

0 commit comments

Comments
 (0)