You shoudl create a specific bridge network only for those containers: docker network create selenium-net -driver bridge. Then docker run -p 4444:4444 -name selenium -network selenium-net selenium/standalone-firefox:latest. When you run your other container, you should also add them in the selenium-net network. Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! Asking for help, clarification, or responding to other answers. Docker Hub is the world's easiest way to create, manage, and deliver your teams' container applications. Get Started Today for Free.
FROM ubuntu:14.04 |
# Replace 1000 with your user / group id |
RUN export uid=1000 gid=1000 && |
mkdir -p /home/developer && |
echo 'developer:x:${uid}:${gid}:Developer,:/home/developer:/bin/bash' >> /etc/passwd && |
echo 'developer:x:${uid}:' >> /etc/group && |
echo 'developer ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/developer && |
chmod 0440 /etc/sudoers.d/developer && |
chown ${uid}:${gid} -R /home/developer |
RUN apt-get update && apt-get install -y firefox wget |
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - |
RUN echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google.list |
RUN apt-get update |
RUN apt-get install google-chrome-stable dbus-x11 packagekit-gtk3-module libcanberra-gtk-module -y |
USER developer |
ENV HOME /home/developer |
CMD dbus-daemon --system --fork && /usr/bin/firefox |
docker build -t browser . |
docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix browser |
docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix browser google-chrome |
commented Oct 26, 2015
Now check https://hub.docker.com/r/dmouse/browser/ |
commented Mar 6, 2018
commented Sep 1, 2019
Is there a way to make this work with later versions of ubuntu, say 16.04 or 18.04? Saitek keyboards driver download for windows. Getting error stuck on line /sudoers.d/ directory doesn't exist? RadarScope by WDT is the premier radar visualization software on the mobile platform. AllisonHouse is the exclusive provider of value added data feeds for the RadarScope platform. The first of it's kind available to the Apple user. RadarScope supports the basic AllisonHouse data feeds. RadarScope is a sophisticated app that tracks worldwide weather and provides users with a wealth of detailed information. It is designed for users with a good working knowledge of weather, and the information it provides goes well beyond a typical weather forecast. RadarScope Pro is an optional auto-renewing subscription with two different tiers to choose from. RadarScope Pro Tier One is an annual subscription that provides access to real-time lightning data in the U.S. And Canada that animates along with the radar loop and up to 30 frames of radar data, including extended loops of super-resolution data. RadarScope is a specialized display utility for weather enthusiasts and meteorologists that allows you view NEXRAD Level 3 and Super-Resolution radar data along with Tornado, Severe Thunderstorm. Radarscope. |