3

I have recently got a new MacBook Pro with the M1 chip. I was trying to run some docker images, but I received some errors:

$ docker pull mariadb:5.5
5.5: Pulling from library/mariadb
no matching manifest for linux/arm64/v8 in the manifest list entries
$ docker run custom-mariadb-build-based-5.5:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
runtime: failed to create new OS thread (have 2 already; errno=22)

I have also other (non-mariaDB) images that have the same problem. Running them with the --platform=linux/amd64 does not make any difference (besides removing the warning).

I know that there are already similar questions here. They have answers to rebuild the images on the new architecture. However, this is currently not possible and I also need to have that specific version of mariaDB, which doesn't support arm64 yet.

I guess that I am not the only one running into this problem and I am wondering how others fixed it. I already tried to use some virtualisation with colima or rancher, but this didn't work.

user969039
  • 511
  • 2
  • 7
  • 18
  • Does this answer your question? [how to run amd64 docker images on arm64 host platform](https://stackoverflow.com/questions/67458621/how-to-run-amd64-docker-images-on-arm64-host-platform) – Siguza Jan 10 '22 at 08:03
  • 1
    I have installed Rosetta2 but that doesn't seem to change anything: `$ docker run --platform=linux/amd64 mariadb:5.5 runtime: failed to create new OS thread (have 2 already; errno=22) fatal error: newosproc` – user969039 Jan 10 '22 at 08:38
  • this is a known issue:https://github.com/linuxkit/linuxkit/issues/1348 – Eric Feb 18 '22 at 08:11

2 Answers2

0

I suggest you provide a VPS service to work with docker. Until these issues are resolved by Apple or docker.

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 10 '22 at 08:33
  • 1
    I appreciate your comment, Community, but it's like when someone is sweepeing the floor and you say "here there's a little spot you've missed"... anyone would give you the broom. So same here: thanks for the suggestion but do it yourself rather than giving advice. I know it's an automatic message but there has been a person who has decided that the bot should send this message because more info was need. – Eric Feb 18 '22 at 08:08
0

run this command, it works for me.

docker run --privileged --rm tonistiigi/binfmt --install amd64 docker run -it --platform=linux/amd64 --name fdb_non_root_test