E

Dockerfile Platform Warning Issue

Summary

The user is pushing an image to Google Cloud using a Dockerfile with a specified platform of linux/amd64. Although the process works, they receive a message indicating that the default platform (linux/arm64) for a multi-platform image could not be found, defaulting to linux/amd64. The user seeks advice on how to prevent this message from appearing.

Status
open
Tags
  • linux/amd64
  • Dockerfile
  • Google Cloud
  • Platform Warning
  • Dockerfile
  • Google Cloud
Source
#earthly
    e

    e

    8/2/2024

    i am pushing up an image to google cloud with

        FROM DOCKERFILE --platform linux/amd64 --build-arg MIX_ENV=prod .
        ARG EARTHLY_BUILD_SHA
        SAVE IMAGE --push ...-web:${EARTHLY_BUILD_SHA}```
    and it works, but i get the following message ... how might i prevent this message?
    ```              output | [----------] 100% exporting outputs
    Failed to find default platform (linux/arm64) of multi-platform image ...; defaulting to the first platform type: linux/amd64
    Image ... is a multi-platform image. The following per-platform images have been produced:
    	..._linux_amd64 (=...)
    Note that when pushing a multi-platform image, it is pushed as a single multi-manifest image. Separate per-platform image tags are only available locally.
                  output | --> exporting outputs```