-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v20.10.5 ] Platform architecture detection #1214
Comments
Can you paste logs associated with the pull? |
Are you referring to CLI output? I cleared all setup, fresh start -
If there is any CLI verbose logging that I can enable to show the failed pull, please let me know. |
No I mean the docker daemon logs. |
Here you go.. keep in mind, i did a service restart per my last comment.
|
Sorry, can you add So far from what I can tell, docker is detecting your system as armv7 instead of arm64, but debug logs should help in knowing what it is doing. |
gotcha.. Took me some time to realize there is no config by default. I created one with just $ cat /etc/docker/daemon.json
{
"debug": true
}
$ sudo service docker stop ; sudo rm -r /var/lib/docker/; sudo service docker start
$ docker pull influxdb
Using default tag: latest
latest: Pulling from library/influxdb
no matching manifest for linux/arm/v7 in the manifest list entries
$ docker pull influxdb --platform=arm64
Using default tag: latest
latest: Pulling from library/influxdb
c78c297fb0d0: Pull complete
06af62193c25: Pull complete
8b846e1b7390: Pull complete
7fa5b994e094: Pull complete
912bfc01b864: Pull complete
f1872ae9f82e: Pull complete
14971371c2fa: Pull complete
218ef0f3c9be: Pull complete
faa40b3dbe64: Pull complete
Digest: sha256:0b35e4d071ad0eef0771f7f0679276407a728b8388f98a2d3232f32179ed25fe
Status: Downloaded newer image for influxdb:latest
docker.io/library/influxdb:latest
$ journalctl -fu docker
-- Logs begin at Fri 2021-03-05 11:59:45 EST. --
Mar 05 15:37:48 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:48.944599273-05:00" level=debug msg="Applying tar in /var/lib/docker/overlay2/9e3ad0d2ab92d51ed7214f399d56b96ba5c13c94f750bd65ab1d37261592504a/diff" storage-driver=overlay2
Mar 05 15:37:49 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:49.146893428-05:00" level=debug msg="Applied tar sha256:7ef7ab563542d66d5c58c71c12d95652292d9e6e39d51a3f811a5aa53896cc2f to 9e3ad0d2ab92d51ed7214f399d56b96ba5c13c94f750bd65ab1d37261592504a, size: 0"
Mar 05 15:37:49 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:49.342553334-05:00" level=debug msg="Using /usr/bin/unpigz to decompress"
Mar 05 15:37:49 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:49.353787110-05:00" level=debug msg="Applying tar in /var/lib/docker/overlay2/e688297a996993147fc0cbacf9e2f096d31979f32691a0bcd527fc2c90c3373b/diff" storage-driver=overlay2
Mar 05 15:37:49 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:49.528390635-05:00" level=debug msg="Applied tar sha256:95da00a24c55336b4d45eb480b17eaea03b80d598f663ad4e0e9fb9c31a9000a to e688297a996993147fc0cbacf9e2f096d31979f32691a0bcd527fc2c90c3373b, size: 98"
Mar 05 15:37:49 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:49.709004470-05:00" level=debug msg="Using /usr/bin/unpigz to decompress"
Mar 05 15:37:49 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:49.720995702-05:00" level=debug msg="Applying tar in /var/lib/docker/overlay2/9c4eb12b8f9f3f9c66b776f18e218e4c7a208bec602b9fc1b39d76c1a36e773a/diff" storage-driver=overlay2
Mar 05 15:37:49 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:49.896104870-05:00" level=debug msg="Applied tar sha256:8fed90b5e4a6a62e8fdb10a8f078242cea6ad6218e667500c29a9aa39f3dd3b8 to 9c4eb12b8f9f3f9c66b776f18e218e4c7a208bec602b9fc1b39d76c1a36e773a, size: 12229"
Mar 05 15:37:50 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:50.117550091-05:00" level=debug msg="Adding content digest to lease" digest="sha256:0b35e4d071ad0eef0771f7f0679276407a728b8388f98a2d3232f32179ed25fe" lease="moby-image-sha256:3186e07f4050523da24af0ff8e09695e1372807260fb00e96c9d40b04daaaa2c" remote="docker.io/library/influxdb:latest"
Mar 05 15:37:50 raspberrypi4 dockerd[16864]: time="2021-03-05T15:37:50.152887477-05:00" level=debug msg="Adding content digest to lease" digest="sha256:7418b74da890e76ef4b62152b0ce8f66b5191a067dd3d337ff5ba468acfdd9bd" lease="moby-image-sha256:3186e07f4050523da24af0ff8e09695e1372807260fb00e96c9d40b04daaaa2c" remote="docker.io/library/influxdb:latest"
^C
$ |
And is that the armv7 version instead of arm64? |
I am pulling this https://hub.docker.com/_/influxdb/ and it does not have a arm7 image. It has an arm64 version. |
And it works on 20.10.3? |
Also, what's the output of |
that is my problem.. I did an apt update/upgrade last night, and I am not sure what version I was using before it..
|
What's in |
cat /etc/apt/sources.list.d/docker.list |
but if I do
It pulls the aaarch64 image |
I'm not sure why armhf was detected there when the list was installed.
That information isn't in the image, its reading from /proc/cpuinfo, which is from the host. |
well, that file was generated from this command..
if I change it to
|
In Raspbian with 64bit enabled, only kernel is 64bit, and all user land including docker-ce is 32 bit. But if we can pull an arm64 image, it runs fine. |
You'll need to |
I am thinking if this is related to moby/issues/41092. But i can swear influxdb was running until 2 days ago.. I still have its data files to prove it!! |
I finally found the issue. Last week Influx changed their image to target their 2.0 image, while it was 1.8x series before. If I fix the version to 1.8x, it works fine.
So it was not related to docker code issue. |
Well, you are getting the armhf version of the image because the version of Docker you have installed is compiled for armhf. |
Since 20.10.5 (with fix for #1170 platform detection is broken other way on SBCs running 64bit kernel and 32bit user land. Raspberry Pi 4 in my case.
Expected behavior
docker pull
should use the highest available platform. Trying to pull an image with arm64 support should work on a 64 bit kernel engine.Actual behavior
docker fails to detect the arm64 part, and tries to pull arm/v7, which is not supported by image.
Steps to reproduce the behavior
arm_64bit=1
in/boot/config.txt
docker pull influxdb
platform: arm64
to a compose file and trying to use indocker stack deploy
fails withservices.influxdb Additional property platform is not allowed
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
The text was updated successfully, but these errors were encountered: