Comments (10)
Hi @dmitryr117 👋
Thanks for the feedback and opening an issue.
I didn't have a direct answer for your problem but I can investigate to help you.
Can you please add some details on the docker-compose
?
For your information, the log Failed to read DnsConfig
is a warning from Chromium. Do you have a ERROR
or FATAL
in your logs?
You can print more logs using the command described here --log-level=0
: #15 (comment)
from alpine-chrome.
Hi @dmitryr117 👋
Any news on your issue?
from alpine-chrome.
Hi @dmitryr117 👋
Do you have any news to understand your issue?
Without any news, I will close the issue next week...
from alpine-chrome.
I am also having this problem, and I am willing to provide you with whatever details you need.
I removed docker-compose from the equation, and I receive this error just doing plain docker run.
docker run -it --security-opt seccomp=$(pwd)/chrome.json zenika/alpine-chrome:73
exits immediately with return code of 0, and the only thing that shows up in the logs is [0529/204426.581579:WARNING:dns_config_service_posix.cc(335)] Failed to read DnsConfig.
I have tried a number of combinations, such as previous versions of alpine-chrome, removing the security-opt settings, and overriding entrypoint with shell, so that I can run the entrypoint directly myself.
The behavior I expect is that chrome stays running in the foreground, but that doesn't seem to be happening. As far as I can tell adding --log-level=0
does nothing.
On my host
ubuntu@mybox: docker run -it --entrypoint sh zenika/alpine-chrome:73
Inside the container
/usr/src/app $ chromium-browser --headless --log-level=0 --disable-gpu --disable-software-rasterizer --no-sandbox
[0529/205209.922919:WARNING:dns_config_service_posix.cc(335)] Failed to read DnsConfig.
/usr/src/app $ echo $?
0
/usr/src/app $
Versions
Chromium 73.0.3683.103
Alpine 3.9.3
from alpine-chrome.
Hi @likwid 👋
Thanks for your feedbacks!
For your information, the log Failed to read DnsConfig
is a warning from Chromium (not an error or a fatal problem). 👍
I don't really understand the expected behavior you're waiting for. 😅
I explained myself:
- you launch your container:
docker run -it --entrypoint sh zenika/alpine-chrome:73
- you launch Chromium without action or website to visit, just flags
chromium-browser --headless --log-level=0 --disable-gpu --disable-software-rasterizer --no-sandbox
- you get an quick exit from the headless Chromium process and you get a
0
return that matchs a successful command 👍
Can you try adding an action to your headless chrome like the following ones?
Reminder: the objective of this docker image is to provide a "Headless" Chrome (without any graphical user interface).
I found this issue on runnning headless Chrome in the background. Is that something you want to achieve? Can you explain your idea?
from alpine-chrome.
My bad 🥇
What I thought would happen is that chrome would just continue to run in the foreground, but be accessible over a port. I see now in the documentation, that you are passing a URL.
Sorry, not sure how I missed that the first time.
from alpine-chrome.
Hi @likwid 👋
No problem.
Do you think I need to explain more precisely how it works in the README
? 🤔
Can you describe the usecase you want to run with this image? perhaps to help others?
Thank you. BTW, lol for your homer gif 👍
from alpine-chrome.
Hi @likwid 👋
Without any news from you, I will close this issue next week.
from alpine-chrome.
@all-contributors please add @likwid @dmitryr117 for bug
from alpine-chrome.
I've put up a pull request to add @likwid! 🎉
from alpine-chrome.
Related Issues (20)
- Arm64 cpu startup card is stuck, Unable to use HOT 4
- Please add tzdata
- Node 18 now LTS HOT 2
- pulseaudio can't install in 102-with-puppeteer-xvfb HOT 1
- Chrome fails to load web page and crashes due to net::ERR_INSUFFICIENT_RESOURCES HOT 3
- Failed to write file pdf: No such file or directory (2) when using `print-to-pdf` HOT 1
- Support --headless=new HOT 3
- zenika/alpine-chrome:100-with-puppeteer has segmentation fault during apk-upgrade HOT 2
- [Help-Wanted] How to run chrome in docker like `jlesage/firefox`
- R2Devops ❤️ zenika/alpine-chrome ! HOT 1
- WebGL not work as expected HOT 2
- How to configure supported locales for Intl apis
- cannot install alpine packages HOT 1
- Bun Support HOT 2
- Publish images to ghcr.io as well HOT 1
- How can I have/build a version of zenika/alpine-chrome:with-puppeteer for armv7? HOT 3
- Chrome hangs when taking a screenshot of a page with a large image HOT 3
- When using zenika/alpine-chrome:with-chromedriver docker image then in GitLab CI ChromeDriver was started successfully. is display but it get stuck and do nothing HOT 9
- Unable to load some pages(GPU crash) HOT 1
- Puppeteer version out of sync with Chromium
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-chrome.