-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting --proxy-server #48
Comments
I've been building my own images with the arguments I need, but it would be great if these images supported arbitrary arguments! |
Hi, thanks very much for your answer. I tried the following: docker run -it -p 9222:9222 --cap-add=SYS_ADMIN justinribeiro/chrome-headless "--proxy-server=64.227.8.188:8181" but I get the error: (google-chrome:1): Gtk-WARNING **: 07:47:48.668: cannot open display: Do you have any idea how I could fix it...? |
Actually, even if I run the following: docker run -it -p 9222:9222 --cap-add=SYS_ADMIN justinribeiro/chrome-headless "--proxy-server=64.227.8.188:8181" "--headless" the container exits immediately. |
I should have been more clear: the docker documentation explains the process fully Overriding Dockerfile image defaults. As an example, here's the container running with the full set of flags required in a pure override: |
The container doesn't have a means to consume custom certificates; you'd have to build your own hook to import them into the trust. If you've generated a certificate for say a local server, you can use certutil to do this on linux with something along the lines of:
|
I actually knew about this command, but never imagined using it inside a container to get around this issue. Thanks very much for your tip, again! |
Hi,
Thanks very much for your very useful chrome-headless docker container. I am trying to set up a chrome container that uses my local web proxy. However, I am not sure how to set the "--proxy-server" argument value for the chrome-headless container... Is it ever supported? If so, I would really appreciate your feedback.
The text was updated successfully, but these errors were encountered: