0

I'm getting two sets of different docker images. One set when I ssh into my ec2 instance and one in my cloud9 environment. Does anyone have any idea why this could be happening? I basically need one of the images I created in docker to send to ec2

Docker images after I ssh into ec2 instance

Docker images in my cloud9 environment that I'm attempting to upload to EC2

I'm attempting to run this command in my ec2 instance but get an error that the image is not being found...

  1. Run the following command:
docker run --rm \
    -it --name db-setup\
    <aws-account-id>.dkr.ecr.<aws-region>.amazonaws.com/<repo-or-image-name>:<version-tag> \
    bundle exec rake db:drop db:create db:migrate
Lin Du
  • 88,126
  • 95
  • 281
  • 483
  • Do you connect to the same EC2 instance on which Cloud9 is running? I wondering why do you not upload the docker image into ECR container registry in order to share it? – Ervin Szilagyi Jun 24 '21 at 22:52
  • no im connecting to a separate EC2 instance I created in cloud9 instance, the image im trying to use is in ECR container registry – Jaime Lujan Jun 24 '21 at 23:30
  • docker: Error response from daemon: pull access denied for exec, repository does not exist or may require 'docker login' this is the error I get – Jaime Lujan Jun 25 '21 at 00:07

0 Answers0