Skip to content

Commit 558578e

Browse files
committed
Fixed: R BYO to restart docker container, removing error
1 parent 2067f7b commit 558578e

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

under_development/r_bring_your_own/r_bring_your_own.ipynb renamed to advanced_functionality/r_bring_your_own/r_bring_your_own.ipynb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,12 @@
324324
"# Get the login command from ECR and execute it directly\n",
325325
"$(aws ecr get-login --region ${region} --no-include-email)\n",
326326
"\n",
327+
"# On a SageMaker Notebook Instance, the docker daemon may need to be restarted in order\n",
328+
"# to detect your network configuration correctly. (This is a known issue.)\n",
329+
"if [ -d \"/home/ec2-user/SageMaker\" ]; then\n",
330+
" sudo service docker restart\n",
331+
"fi\n",
332+
"\n",
327333
"# Build the docker image locally with the image name and then push it to ECR\n",
328334
"# with the full name.\n",
329335
"docker build -t ${algorithm_name} .\n",

0 commit comments

Comments
 (0)