Public | Automated Build

Last pushed: 3 years ago
Short Description
Google Chrome in a CentOS/7 container
Full Description


CentOS 7 dockerfile for Google Chrome

To build:

# docker build --rm -t truhuynh/chrome:centos7 .

Run the chrome browser inside docker with a permanent storage (in this case ~/shared/data):
~/shared/data will be mapped to /data inside the container, and will provide the permanent storage for chrome.

# docker run --rm -t --memory 512mb --net host -e DISPLAY=$DISPLAY -v /dev/snd:/dev/snd -v ~/shared/data:/data --privileged  truhuynh/chrome:centos7 

Run a pristine chrome browser inside docker, without any previous configuration:

# docker run --rm -t --memory 512mb --net host -e DISPLAY=$DISPLAY -v /dev/snd:/dev/snd --privileged  truhuynh/chrome:centos7 

based on

Display issue:
1) [tru@home ~]$ docker run -t truhuynh/chrome:centos7
[1:1:0417/] Running without the SUID sandbox! See for more information on developing with the sandbox on.
[1:1:0417/] Gtk: cannot open display

Please use/adapt the provided scripts at and

Files owned by root:
2) ~/shared/data (the defined shared storage space) is owned by root :(

Docker Pull Command
Source Repository