I'm new to m1 macbook and face an issue with running my docker-compose which looks like this:
version: "3.7"
services:
search:
platform: linux/x86_64
build:
context: .
dockerfile: Dockerfile.kubectl
And the Dockerfile:
FROM ubuntu:latest
RUN apt-get update && apt-get install -y apt-transport-https curl gnupg2 unzip
RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list
RUN apt-get update && apt-get install -y kubectl
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && rm awscliv2.zip
RUN ./aws/install
After running it I get such an error:
2021-09-30T13:24:52.816038712Z /lib64/ld-linux-x86-64.so.2: No such file or directory
What exactly are steps to fix this? My Docker version is 4.1.1
x86_64
; why are you trying to set the wrong architecture? – Loss