Code Monkey home page Code Monkey logo

Comments (10)

jlandure avatar jlandure commented on July 20, 2024

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.

jlandure avatar jlandure commented on July 20, 2024

Hi @dmitryr117 👋
Any news on your issue?

from alpine-chrome.

jlandure avatar jlandure commented on July 20, 2024

Hi @dmitryr117 👋
Do you have any news to understand your issue?
Without any news, I will close the issue next week...

from alpine-chrome.

likwid avatar likwid commented on July 20, 2024

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.

jlandure avatar jlandure commented on July 20, 2024

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.

likwid avatar likwid commented on July 20, 2024

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.

I can show myself the door

from alpine-chrome.

jlandure avatar jlandure commented on July 20, 2024

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.

jlandure avatar jlandure commented on July 20, 2024

Hi @likwid 👋

Without any news from you, I will close this issue next week.

from alpine-chrome.

jlandure avatar jlandure commented on July 20, 2024

@all-contributors please add @likwid @dmitryr117 for bug

from alpine-chrome.

allcontributors avatar allcontributors commented on July 20, 2024

@jlandure

I've put up a pull request to add @likwid! 🎉

from alpine-chrome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.