Chrome starts very slowly in a Docker container

  Kiến thức lập trình

In the screenshot below I run Chrome with verbose logging enabled in a Windows container and print the time of the command, it is 17:41:41. Then I check the time of the earlist log entry, it is 17:41:50. I.e., it took Chrome 9 seconds to even produce the very first log line. Tried with a Linux container and with Chromium (on a Windows container), same result.

enter image description here

When I run Chrome locally or in a container in my local Docker, it starts instantly. When I try Edge (which is Chromium-based) in a Windows container, it starts instantly as well.

Where do I even start? Chrome logs don’t seem to be useful, as it clearly doing something before it even starts logging.

LEAVE A COMMENT