Your Universal Google Chrome by Docker
97
Your Universal Google Chrome by Docker

Step 1. Install docker by following Docker official installation guide.
Docker is cross-platform so you can run google-chrome on Mac OSX / Linux / Windows.
Step 2. Download the image, run
$ docker pull weichuntsai/xserver:1.0
$ docker pull weichuntsai/google-chrome:1.0
Step 3. Install a VNC viewer. I recommend RealVNC.
Step 4. Initialize the xserver container, the command is as follows:
$ docker run --name mydisplay -e VNC_PASSWORD=1234 -p 5901:5900 weichuntsai/xserver:1.0
For other scenarios of this step, please refer to xserver README.md
chrome), please run$ docker run --name chrome -dt --link mydisplay:xserver --volumes-from mydisplay weichuntsai/google-chrome:1.0
chrome and run the command google-chrome$ docker exec -it chrome bash
$ chmod 755 /setup-xclient.sh; /setup-xclient.sh xserver; source ${HOME}/.bashrc
$ google-chrome --no-sandbox
localhost:5901 and type in the password 1234,
then you can see your google-chrome console window inside the VNC viewer window like the following figure:

Content type
Image
Digest
Size
340.4 MB
Last updated
about 6 years ago
docker pull weichuntsai/google-chrome:1.0