I am running a docker image on 2 different computers and the contents of said image are different.
I am ensuring they are the same image by specifying the digest as such
docker run -it ubuntu@sha256:f9d633ff6640178c2d0525017174a688e2c1aef28f0a0130b26bd5554491f0da /bin/bash
however when I run
cat /etc/apt/sources.list I am getting very different contents. Furthermore when I try to do apt-get update && apt-get install curl -y on one computer I get 400 bad request errors and is unable to install while on the other computer it works just fine.
The bad computer has mirror URIs that are mostly from ubuntu-ports, i.e. ports.ubuntu.com/ubuntu-ports while the good computer is mostly archive.ubuntu.com
I dont believe this file is generated at runtime so I cannot figure out what is causing this discrepancy.
You have pulled the image for two different platforms. The digest you provided is the top level manifest list that has references to multiple platform specific images:
Checking the requested file on AMD64 shows the archive URLs:
However on ARM64, they use the ports URLs:
You can check your host platform with commands like
uname.