[b]"How to Docker Install Chromium-Browser with Version? Need Help!"[/b] or [b]"Best Way to Docker Install Chromiu

18 Replies, 682 Views

"Best Way to Docker Install Chromium-Browser with Version – Any Tips?"

Hey folks!

Trying to docker install chromium-browser with version, but hitting some snags. Need it for a project, and I wanna make sure I’m pulling the right version (like, say, 115.0 or whatever).

Anyone got a clean way to do this? Dockerfiles, commands, or even a pre-built image?

Also, is there a trick to keep it lightweight? Don’t need all the extra bloat.

Thanks in advance! 🙌

---

*or*

"Struggling to Docker Install Chromium-Browser with Version – Any Guidance?"

yo, so i’m stuck trying to docker install chromium-browser with version.

like, i just need v120.0 or something specific, but pulling the default image gives me whatever’s latest.

anyone know how to pin the version properly?

docker noob here, so pls be gentle lol.

cheers! 🍻
Hey! I had the same issue last week. The trick is to use the official Chromium Docker image with a specific tag. For example, if you want version 115.0, you can pull it like this:

`docker pull chromium/chromium:115.0`

Also, check out Docker Hub for Chromium tags. It’s a lifesaver for pinning versions.

For lightweight, use `--no-sandbox` and strip unnecessary packages in your Dockerfile. Hope this helps!
yo, docker install chromium-browser with version is easier than u think.

just grab the version u want from the debian repo and slap it in a Dockerfile.

```
FROM debianConfusedtable-slim
RUN apt-get update && apt-get install -y chromium-browser=115.0.5790.98-1~deb11u1
```

boom. done.

ps: debian versions are a bit behind tho, so if u need latest, go for the official image.
If you’re looking for a pre-built solution, check out the `selenium/standalone-chrome` images. They’re super handy and versioned.

For example:
`docker pull selenium/standalone-chrome:120.0`

They’re not pure Chromium, but close enough for most use cases. Plus, they’re optimized for headless stuff.
Dude, just use the `zenika/alpine-chrome` image. It’s lightweight AF and you can specify versions.

```
FROM zenika/alpine-chrome:with-node
ENV CHROME_VERSION=115.0
```

Alpine base keeps it small, and it’s got all the flags pre-set for running in Docker.
Pro tip: Avoid the default Chromium images if you need specific versions. Instead, build from source in your Dockerfile.

```
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y wget
RUN wget https://download-chromium.appspot.com/dl...=snapshots -O chrome-linux.zip
```

This lets you grab exact builds, but it’s a bit more work.
lol i feel u. docker install chromium-browser with version is a pain.

i ended up using this Dockerfile:

```
FROM ubuntu:latest
RUN apt-get update && apt-get install -y chromium-browser
ENV CHROMIUM_VERSION=120.0
```

not perfect, but it works.

also, check out `chromedriver` if u need automation.
Wow, thanks for all the replies! Didn’t expect so many options.

Tried the `zenika/alpine-chrome` one and it worked like a charm. Super lightweight too.

Quick q: Anyone know how to handle GPU acceleration in Docker with Chromium? Or is that a lost cause?

Cheers! 🚀
For a super lightweight option, try the `alpine` base with Chromium. Here’s a snippet:

```
FROM alpine:edge
RUN apk add --no-cache chromium
```

You can pin the version with `chromium=115.0-r0` or whatever’s in the repo.

Alpine keeps it under 200MB, which is nice.
If you’re okay with unofficial images, `browserless/chrome` is solid. They version their builds and keep ’em updated.

Just run:
`docker pull browserless/chrome:120.0`

They also have docs on how to tweak flags for minimal bloat.



Users browsing this thread: 1 Guest(s)