Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install chromium in Docker based on Ubuntu 19.10 and 20.04?

Tags:

I have this simple docker file:

FROM ubuntu:eoan   ENV DEBIAN_FRONTEND=noninteractive   RUN apt update && apt install -y \    chromium-browser \    chromium-chromedriver 

When I try to build it:

... Preparing to unpack .../00-chromium-browser_77.0.3865.120-0ubuntu1.19.10.1_amd64.deb ... => Installing the chromium snap ==> Checking connectivity with the snap store ===> Unable to contact the store, trying every minute for the next 30 minutes 

And it seems that it never reaches the said snap store. It works fine if the image is based on disco instead of eoan. It works fine on a physical machine.

like image 350
Jeremad Avatar asked Nov 22 '19 15:11

Jeremad


People also ask

How do I install Chromium on Ubuntu?

To install Chromium on Ubuntu 18.04 LTS and above, just open the Ubuntu Software tool and search for 'Chromium'. Click on the app listing then the install button. From here just hit “install”, enter your password (if prompted) and that's pretty much it — hey: I did say it was easy!

How do I start Docker Chromium?

Launch from KDE Start Menu: Internet -> Chromium Docker, and after a terminal window flashes on screen and a few seconds pass, Docker will launch with Chromium Media Edition within it.

Is Chromium available for Ubuntu?

Chromium has been installed on your Ubuntu desktop, and you can start using it. Whenever a new version is released, the Chromium snap package will be automatically updated in the background. If you are not comfortable with the command line, open Ubuntu Software, search for “Chromium” and install the application.


1 Answers

It's not a solution, it's a workaround. Just use google-chrome instead. I faced with this issue when suddenly in one day that docker image that always was building become broken. My case was like your: ubuntu 19.10 as a base for docker image.

RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt-get install -y ./google-chrome-stable_current_amd64.deb RUN rm google-chrome-stable_current_amd64.deb  
like image 173
Gleb Samsonenko Avatar answered Sep 17 '22 09:09

Gleb Samsonenko