Hello! I was hoping someone could help me come up with a solution for moving Docker images around (in ECR)... i'd like to do the following:
1. Pull a docker image from a source (we'll call this repository A)
2. Push the image from repository A to repository B
I've been trying to do this with the following steps without success:
1. Fetch repository A metadata with aws.ecr.getRepository
2. Fetch repository A creds with aws.ecr.getCredentials
3. Create a new docker.RemoteImage (using the image I want and a custom provider with the credentials from (2))
4. I then create a new repository (repository B) using new aws.ecr.Repository
5. I then get the credentials for that repository and create a new docker.RegistryImage and pass the creds from (4) in authConfigs
I run into an issue at (5) because I have no Dockerfile to pass to the build context. I try to use the output from the docker.RemoteImage which is supposed to pull the remote image to my local filesystem but can't locate that file. Any guidance is appreciated, thanks!