We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828cdc3 commit 608350dCopy full SHA for 608350d
src/sagemaker/local/image.py
@@ -227,6 +227,17 @@ def process(
227
228
if _ecr_login_if_needed(self.sagemaker_session.boto_session, self.image):
229
_pull_image(self.image)
230
+
231
+ # Remove sagemaker-local network, compose_command will fail if an existing network is still around
232
+ remove_sagemaker_local = ["docker", "network", "rm", STUDIO_HOST_NAME]
233
+ remove_process = subprocess.Popen(
234
+ remove_sagemaker_local, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
235
+ )
236
+ try:
237
+ _stream_output(remove_process)
238
+ except RuntimeError:
239
+ # Continue even if rm sagemaker-local fails
240
+ pass
241
242
compose_command = self._compose()
243
process = subprocess.Popen(
0 commit comments