我需要运行XVFB和Docker,并使用Firefox,但无法使它们一起运行。
这是我的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"]
我从Firefox收到的错误信息是:
Error: cannot open display: :99
CMD["xvfb-run firefox"]
是什么意思? - Michaelxvfb_run bundle exec cucumber --profile jenkins
- Michael