Open mchoi8739 opened 3 years ago
Refreshed kernel conda_pytorch_p36
and retried. Getting the following error:
WARNING! Your password will be stored unencrypted in /home/ec2-user/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Sending build context to Docker daemon 45.57kB
Step 1/4 : ARG region
Step 2/4 : FROM 763104351884.dkr.ecr.${region}.amazonaws.com/pytorch-training:1.6.0-gpu-py36-cu110-ubuntu18.04
Get https://763104351884.dkr.ecr.us-east-1.amazonaws.com/v2/pytorch-training/manifests/1.6.0-gpu-py36-cu110-ubuntu18.04: no basic auth credentials
Error response from daemon: No such image: bert-smdataparallel-sagemaker:latest
The push refers to repository [111122223333.dkr.ecr.us-east-1.amazonaws.com/bert-smdataparallel-sagemaker]
An image does not exist locally with the tag: 111122223333.dkr.ecr.us-east-1.amazonaws.com/bert-smdataparallel-sagemaker
Error: Image build and push failed
CPU times: user 24.4 ms, sys: 1.39 ms, total: 25.8 ms
Wall time: 1.7 s
111122223333 does not look like a real account
111122223333 does not look like a real account
While copying the log, I switched the ARN number to protect my account information.
! aws ecr get-login-password --region {region} | docker login --username AWS --password-stdin 763104351884.dkr.ecr.us-east-1.amazonaws.com
For the item number 2 above, the stage directory (the current notebook kernel) must be on EBS volume with 100 GB available space to download the benchmark dataset.
The maskrcnn example notebook returns the same error that was reported and fixed in https://github.com/aws/amazon-sagemaker-examples/pull/2056. Need to update the maskrcnn and bert training scripts as well.
I am also getting similar error, @mchoi8739 are you able to run now?
code ! aws ecr get-login-password --region {region} | docker login --username AWS --password-stdin {dlc_account_id}.dkr.ecr.{region}.amazonaws.com ! chmod +x build_and_push.sh; bash build_and_push.sh {dlc_account_id} {region} {image} {tag}
Error WARNING! Your password will be stored unencrypted in /home/ec2-user/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded WARNING! Your password will be stored unencrypted in /home/ec2-user/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded error checking context: 'can't stat '/home/ec2-user/SageMaker/lost+found''. Error response from daemon: No such image: mask-rcnn-smdataparallel-sagemaker:latest The push refers to repository [xyz.dkr.ecr.us-east-1.amazonaws.com/mask-rcnn-smdataparallel-sagemaker] An image does not exist locally with the tag: xyz.dkr.ecr.us-east-1.amazonaws.com/mask-rcnn-smdataparallel-sagemaker Error: Image build and push failed
Same problem here!
I'm having the same problem as @santosh4b6 with the error checking context: 'can't stat '/home/ec2-user/SageMaker/lost+found''. Does anyone have a fix?
@HuBaX Somewhere I read sagemaker studio does not support Docker related commands. Instead they have sm-docker for building docker image. You might need to get codebuild permissions.
Steps to build docker image and push it to ecr in a studio notebook
I hope this helps you.
Link to the notebook
Describe the bug Ran the first 5 code cells for pushing the provided docker container with the image and tags:
The following cell does not complete the docker build:
returning the following error:
To Reproduce Run the first 5 code cells of the notebook.