Coder Social home page Coder Social logo

chrome-docker's Introduction

Chrome Docker (unmaintained)

A Docker image that can run Google Chrome.

Please note, this project is no longer maintained. I am currently focused on other projects, and do not have the required time to support this. Pease feel free to fork it.

Thank you for using it. I hope that it helped :)

How does it work?

The Docker image includes a VNC server which provides graphical access to the virtual display running in the container.

How do I build it?

Refer to the building documentation.

How do I run it?

First, start the container and its VNC server:

docker run -p 5900:5900 --name chrome --user apps --privileged <image-name>

Note: The macOS VNC client will not be able to login unless you set a password for the VNC server. The instructions for setting a VNC password can be found below.

By default, the VNC server is started without a password. If you would like to specify a password for the VNC server, do the following:

docker run -p 5900:5900 -e VNC_SERVER_PASSWORD=some-password --name chrome \
    --user apps --privileged <image-name>

Once the container is running, you can VNC into it at 127.0.0.1 and run Chrome from a terminal window by running:

google-chrome

You can also start Google Chrome by right-clicking the Desktop and selecting:

Applications > Network > Web Browsing > Google Chrome

Additional settings

Refer to the configuration documentation.

Security concerns

This image starts a X11 VNC server which spawns a framebuffer. Google Chrome also requires that the image be run with the --privileged flag set. This flag disables security labeling for the resulting container. Be very careful if you run the container on a non-firewalled host.

Some applications (such as Google Chrome) will not run under the root user. A non-root user named apps is included for such scenarios.

chrome-docker's People

Contributors

stephen-fox avatar

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.