I need to run XVFB and docker with firefox but can't get them to work together
Here is my Dockerfile :
FROM abevoelker/ruby:latest # based on ubuntu
ENV TERM linux
RUN apt-get update && apt-get install -y .....
ENV DISPLAY :99
# Install Xvfb init script
ADD xvfb_init /etc/init.d/xvfb # default xvfb init.d
RUN chmod a+x /etc/init.d/xvfb
CMD ["firefox"]
The error message I get from Firefox is
Error: cannot open display: :99
CMD["xvfb_run firefox"]
– Michelinemichellxvfb_run bundle exec cucumber --profile jenkins
– Michelinemichell