Hello, I am trying to run the ImageSpec example on...
# ask-the-community
z
Hello, I am trying to run the ImageSpec example on MacBook M1 given on the following page: https://docs.flyte.org/projects/cookbook/en/latest/auto_examples/customizing_dependencies/image_spec.html I want to push the Image to my GCP project where I have rights to push the images. If I build the images using docker and push it to my GCP project then all work perfectly without any error. At the end of building the image, I am getting the following error:
> apt-get install git:
#5 17.22 perl: warning: Please check that your locale settings:
#5 17.22 	LANGUAGE = (unset),
#5 17.22 	LC_ALL = "en_US.UTF-8",
#5 17.22 	LANG = "C.UTF-8"
#5 17.22   are supported and installed on your system.
#5 17.23 perl: warning: Falling back to a fallback locale ("C.UTF-8").
#5 17.64 debconf: delaying package configuration, since apt-utils is not installed
#5 17.71 Fetched 8904 kB in 1s (10.5 MB/s)
#5 17.76 Error while loading /usr/sbin/dpkg-split: No such file or directory
Sub-process /usr/bin/dpkg returned an error code (1)
------
Failed with Unknown Exception <class 'Exception'> Reason: failed to run command envd build --path /var/folders/01/m569sr9x04j6x8_sr_n1c03r06hms7/T/flyte-qp2ow6ji/sandbox/local_flytekit/13832f2987526bc535adaf7cc3e6fb55 --platform linux/amd64 --output type=image,name=<http://europe-west4-docker.pkg.dev/my-gcp-project/flyte/zeetesting/flytekit:L0sYlwiX5Ne76o2wlm8Y2w..,push=true|europe-west4-docker.pkg.dev/my-gcp-project/flyte/zeetesting/flytekit:L0sYlwiX5Ne76o2wlm8Y2w..,push=true> with error b'time="2023-11-29T10:20:40+01:00" level=fatal msg="failed to build the image: failed to build: failed to wait error group: failed to solve LLB: failed to solve: process \\"/dev/.buildkit_qemu_emulator bash -c apt-get update && apt-get install -y --no-install-recommends git\\" did not complete successfully: exit code: 100"\n'
Additional Information: Docker Desktop (v 4.25.0) Flyte v 1.10.0 Python 3.11 Previously it was working for me but now we have updated the fylte version and I am getting this error. Any idea, how can I solve this issue ?
j
I was running into a similar issue yesterday (not quite the same error) and solved it by turning this setting off in Docker Desktop
z
Thank @Joe Kelly It solved my issue as well :)
j
Awesome, glad to help!
n
the image does not appear, what Docker Desktop setting did you change