1

I am trying to get all platforms (linux/arm64, linux/amd64) from one repo (ECR) and push it to another.

In the case, if I do "docker pull", it will pull only images corresponding to my local computer architecture.

I can do "docker pull --platform'. It will pull a correct platform, but if I do it for multiple platforms, only the latest one will stay property tagged and the tags for the rest will be removed. So, I can't push them to the new repo.

I am trying to figure out how I can pull all of them (all platforms) and push to the new repo.

Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
  • I don't believe it's possible to simultaneously have multiple images with the same image and tag locally. You may need to pull and push one at a time to avoid this limitation. – bgfvdu3w Jun 30 '22 at 19:24
  • I believe the linked question covers what you're looking to do. Let me know if it's different and I'll be happy to reopen. – BMitch Jun 30 '22 at 20:46

1 Answers1

-1

I don't think this is an option But a walk around would be maybe to create a docker compose file, Building an image and pushing it the same time.

services:
  my-service:
    build: my-image
    image: my-image
.
.
.
docker-compose up -d --build
docker-compose push

You can use .env to declare more than one image to try to automate this action.

Shachar297
  • 599
  • 2
  • 7