title: Docker : exec /usr/bin/sh: exec format error
body: <p>Hi guys need some help.</p>
  <p>I created a custom docker image and push it to docker hub but when I run it in CI/CD it gives me this error.</p>
  <p><code>exec /usr/bin/sh: exec format error</code></p>
  <p>Where :</p>
  <p><strong>Dockerfile</strong></p>
  <pre><code>FROM ubuntu:20.04
  RUN apt-get update
  RUN apt-get install -y software-properties-common
  RUN apt-get install -y python3-pip
  RUN pip3 install robotframework
  </code></pre>
  <p><strong>.gitlab-ci.yml</strong></p>
  <pre><code>robot-framework:
    image: rethkevin/rf:v1
    allow_failure: true
    script:
      - ls
      - pip3 --version
  </code></pre>
  <p><strong>Output</strong></p>
  <pre><code>Running with gitlab-runner 15.1.0 (76984217)
    on runner zgjy8gPC
  Preparing the &quot;docker&quot; executor
  Using Docker executor with image rethkevin/rf:v1 ...
  Pulling docker image rethkevin/rf:v1 ...
  Using docker image sha256:d2db066f04bd0c04f69db1622cd73b2fc2e78a5d95a68445618fe54b87f1d31f for rethkevin/rf:v1 with digest rethkevin/rf@sha256:58a500afcbd75ba477aa3076955967cebf66e2f69d4a5c1cca23d69f6775bf6a ...
  Preparing environment
  00:01
  Running on runner-zgjy8gpc-project-1049-concurrent-0 via 1c8189df1d47...
  Getting source from Git repository
  00:01
  Fetching changes with git depth set to 20...
  Reinitialized existing Git repository in /builds/reth.bagares/test-rf/.git/
  Checking out 339458a3 as main...
  Skipping Git submodules setup
  Executing &quot;step_script&quot; stage of the job script
  00:00
  Using docker image sha256:d2db066f04bd0c04f69db1622cd73b2fc2e78a5d95a68445618fe54b87f1d31f for rethkevin/rf:v1 with digest rethkevin/rf@sha256:58a500afcbd75ba477aa3076955967cebf66e2f69d4a5c1cca23d69f6775bf6a ...
  exec /usr/bin/sh: exec format error
  Cleaning up project directory and file based variables
  00:01
  ERROR: Job failed: exit code 1
  </code></pre>
  <p>any thoughts on this to resolve the error?</p>