Docker Community Forums

Share and learn in the Docker community.

Running chrome in docker


(Mercmobily) #1

Hi there,

I am trying to run Chrome (headless) in a chrome container.
The container is as standard as they get:

FROM centos

RUN yum install -y git gcc-c++ make sudo epel-release Xorg \
  && curl https://intoli.com/install-google-chrome.sh | bash \
  && yum clean all  

When I try and run chrome, I get:

bash-4.2$ google-chrome
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
Trace/breakpoint trap (core dumped)
bash-4.2$ 

I am running on Ubuntu. Is there something I can do to my kernel to make it work?

Thanks,

Merc.