<#3176 Docker Buildx support in CLI> Pull request ...
# flyte-github
c
#3176 Docker Buildx support in CLI Pull request opened by ttitsworth-lila ## Why are the changes needed? Pushing docker images from a local network with a bad upload speed can take forever, but buildx is capable of building docker images remotely. For a user who has buildx installed we should prefer this method rather than force them to compromise and use a different environment to use
ImageSpec
. ## What changes were proposed in this pull request? Remove
image
from the string altogether and let docker decide for us. Users who run
docker buildx install
will automatically alias this command for them, and therefore the flyte cli. ## How was this patch tested? I tested this patch on a system with and without buildx to verify the command's functionality persisted. ### Setup process 1. Install Docker 2. (optional) Install the buildx plugin and configure a remote driver 3. Use an existing imagespec workflow to test: from flytekit import ImageSpec sklearn_image_spec = ImageSpec( packages=["scikit-learn", "tensorflow==2.5.0"], apt_packages=["curl", "wget"], registry="ghcr.io/flyteorg", ) ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This PR implements Docker Buildx support by updating the CLI to use remote image building capabilities. It removes the explicit 'image' flag from the default builder, allowing Docker to automatically select the appropriate builder when buildx is available. These changes improve build performance in environments with slower networks and ensure consistent behavior across different systems. Unit tests added: False Estimated effort to review (1-5, lower is better): 1 flyteorg/flytekit