https://rancher.com/ logo
Title
s

shy-airplane-81326

08/02/2022, 11:45 AM
Hello, is it possible to build images for other platforms using rancher desktop... I am on an MI mac and trying to build an image for amd64 platform and I get errors when installing from and upgrading pip ... Cant seem to figure out what this error is .... apologies if this is not the right channel for these question Rancher Desktop Version 1.5.0 Created new builder
❯ docker buildx create --platform=linux/arm,linux/arm64,linux/amd64 --use
recursing_dubinsky
(base)
❯ docker buildx ls
NAME/NODE             DRIVER/ENDPOINT             STATUS  PLATFORMS
recursing_dubinsky *  docker-container
  recursing_dubinsky0 unix:///var/run/docker.sock running linux/arm/v7*, linux/arm64*, linux/amd64*, linux/amd64/v2
rancher-desktop       docker
  rancher-desktop     rancher-desktop             running linux/arm64, linux/amd64
default               docker
  default             default                     running linux/arm64, linux/amd64
❯ docker buildx build --platform linux/amd64 --push -t data-team/app:latest .
[+] Building 0.7s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                       0.0s
 => => transferring dockerfile: 456B                                                                                                                                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                            0.0s
 => [internal] load metadata for <http://docker.io/library/python:3.8.2-slim|docker.io/library/python:3.8.2-slim>                                                                                                                                                                                                       0.6s
 => CACHED [1/2] FROM <http://docker.io/library/python:3.8.2-slim@sha256:ed48f14994a6de2240f0b3a491f75a78b491010b45c1cfa16273022ae5408c61|docker.io/library/python:3.8.2-slim@sha256:ed48f14994a6de2240f0b3a491f75a78b491010b45c1cfa16273022ae5408c61>                                                                                                                                          0.0s
 => => resolve <http://docker.io/library/python:3.8.2-slim@sha256:ed48f14994a6de2240f0b3a491f75a78b491010b45c1cfa16273022ae5408c61|docker.io/library/python:3.8.2-slim@sha256:ed48f14994a6de2240f0b3a491f75a78b491010b45c1cfa16273022ae5408c61>                                                                                                                                                 0.0s
 => ERROR [2/2] RUN pip install --upgrade pip &&     pip install PyMySQL==1.0.2 &&     pip install psycopg2-binary==2.9.3                                                                                                       0.1s
------
 > [2/2] RUN pip install --upgrade pip &&     pip install PyMySQL==1.0.2 &&     pip install psycopg2-binary==2.9.3
#0 0.099 -c: 0: Can't open pip install --upgrade pip &&     pip install PyMySQL==1.0.2 &&     pip install psycopg2-binary==2.9.3
------
Dockerfile:9
--------------------
   8 |
   9 | >>> RUN pip install --upgrade pip && \
  10 | >>>     pip install PyMySQL==1.0.2 && \
  11 | >>>     pip install psycopg2-binary==2.9.3 && \
  12 | 
--------------------
error: failed to solve: process "/bin/sh -c pip install --upgrade pip &&     pip install PyMySQL==1.0.2 &&     pip install psycopg2-binary==2.9.3" did not complete successfully: exit code: 127