chromium crashes on Docker on Mac M1
Hi
Anyone tried to run Crawlee in Docker on MacBook Pro M1?
When I run container I get warning:
The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
Then when inside container I run Crawlee, then when it tries to run Puppeteer I get:
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Failed to launch the browser process!
[0215/102520.399764:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps
[0215/102520.876388:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps
[0215/102520.879290:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps
[0215/102520.905387:FATAL:zygote_main_linux.cc(162)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded().
...
Seems I'm using incorrect image.
My Dockerfile is standard file generated by Crawlee template and starts with probably good image:
FROM apify/actor-node-puppeteer-chrome:16 AS builder
...
Anyone was able to start Crawlee with Puppeter in Docker on Mac M1? ;]
Cheers
GT5 Replies
hello @Deleted User ,
are building your docker image locally on the same platform?
are you running the docker with
--platform linux/amd64
argument as mentioned here https://stackoverflow.com/a/67680194 ?Stack Overflow
how to run amd64 docker images on arm64 host platform
I have an m1 mac and I am trying to run a amd64 based docker image on my arm64 based host platform. However, when I try to do so (with docker run) I get the following error:
WARNING: The requested ...
variable-limeOP•3y ago
Hi
I tried both cases --platform=linux/amd64 and linux/arm64 but always had some problems
Temporary I resigned from investigating this issue further - but it smells like chromium is not working well on docker on M1 with emulation of amd64, but I'm not sure ;]
Thanks for interest!
Cheers
GT
@Deleted User We tried to reproduce it, but noone with M1/arm64 run into this problem, the same issue seems to be discussed there https://github.com/puppeteer/puppeteer/issues/7746 , maybe you may find few tips there.
GitHub
[Bug]: Running puppeteer on docker alpine on Mac failed · Issue #77...
Bug description I'm trying to execute a puppeteer script in a docker container, but it fail, I guess due to new apple MacBook architecture. I tried a lot of args without success, "...
variable-limeOP•3y ago
big thanks, I will check it, maybe I overlooked something..
@Deleted User just advanced to level 2! Thanks for your contributions! 🎉