alpinelinux / docker-alpine

Official Alpine Linux Docker image. Win at minimalism!
MIT License
1.11k stars 264 forks source link

arch missing #422

Closed snowdream closed 2 months ago

snowdream commented 2 months ago

Supported architectures: (more info⁠)

amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x

image image
pennytextures commented 2 months ago
$ docker image pull alpine:3.20 --platform linux/arm64
3.20: Pulling from library/alpine
97964a4b92f0: Already exists
Digest: sha256:e72ad0747b9dc266fca31fb004580d316b6ae5b0fdbbb65f17bbe371a5b24cff
Status: Downloaded newer image for alpine:3.20
docker.io/library/alpine:3.20
$ docker image inspect alpine:3.20
[
    {
        "Id": "sha256:7d1ded65f780db83ec5504e96ba3e4f1d4e8db689fa11674f6fc6d4d5ed6c34d",
        "RepoTags": [
            "alpine:3.20"
        ],
        "RepoDigests": [
            "alpine@sha256:e72ad0747b9dc266fca31fb004580d316b6ae5b0fdbbb65f17bbe371a5b24cff"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2024-09-06T22:49:24.149194903Z",
        "DockerVersion": "23.0.11",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "/bin/sh"
            ],
            "Image": "sha256:714026523a0d79f63b86abe5db329af79c7cc5b31ba681ad4abc6ff56772d2f5",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "Architecture": "arm",
        "Variant": "v6",
        "Os": "linux",
        "Size": 6519077,
        "GraphDriver": {
            "Data": {
                "MergedDir": "/var/lib/docker/overlay2/fa4ae7b93cdd0188251a253657c8078653109f268b57379e5ad134733830aa9b/merged",
                "UpperDir": "/var/lib/docker/overlay2/fa4ae7b93cdd0188251a253657c8078653109f268b57379e5ad134733830aa9b/diff",
                "WorkDir": "/var/lib/docker/overlay2/fa4ae7b93cdd0188251a253657c8078653109f268b57379e5ad134733830aa9b/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:d02db62c2199247ac7866b4d2d3e53e9bb72407bc5e48200602ebb1beb14f959"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

pulling the 64 bit image gives you the 32 bit image, 3.20.2 doesn't have this issue, it's only 3.20.3

fossdd commented 2 months ago

Try clearing your docker cache or use --pull=always. Otherwise if you still have this issue you should ask in community support channels or open a issue at https://github.com/docker-library/official-images

pennytextures commented 2 months ago

Ignore the cached aspect, that's not the issue, a fresh pull still gives you the 32 bit image.

fossdd commented 2 months ago

Well it works on my end, please check your cache (e.g. other images in your local cache with the alpine:3.20 tag) or addional configuration:

$ docker system prune -a -f                        
Deleted Images:
[...]

Total reclaimed space: 133.2MB
$ docker image pull alpine:3.20 --platform linux/arm64 
3.20: Pulling from library/alpine
cf04c63912e1: Pull complete 
Digest: sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
Status: Downloaded newer image for alpine:3.20
docker.io/library/alpine:3.20
$ docker image inspect alpine:3.20 | jq '.[0].Architecture'
"arm64"
pennytextures commented 2 months ago

it's resolved now, there was an upstream docker cache I had to clear out.