Docker-selenium-chrome View Browser

I’m new to docker and have been messing with Docker and selenium grid for a week.

Here are the things I did,

  • Docker container not starting
  • Make docker-compose run unique linked containers
  • Compile webpack on docker production server
  • DistributionNotFound when running pserve with docker-compose
  • How to configure PHP 7 - Apache with MySQL PDO driver in Debian Docker image?
  • Best practice for rails docker-compose db:create db:migrate
    1. Created a container for Selenium grid and google chrome.
    2. Modified my protractor script and point it to hub created in Step 1
    3. I could see the chrome driver logs using docker logs <container-name>

    My question is , is there a way that I can see the browser while the script is running?

  • Create a volume group on Ubuntu to support non-loopback devicemapper driver for docker?
  • Cannot connect to MongoDB running in local Docker container
  • Failed to connect to containerd
  • Get docker IP address from Image name
  • Can't start working with docker
  • Installing Oracle database in docker container
  • One Solution collect form web for “Docker-selenium-chrome View Browser”

    You can use VNC. Here’s the information from the official repo

    You can acquire the port that the VNC server is exposed to by running:

    $ docker port <container-name|container-id> 5900
    #=> 0.0.0.0:49338
    

    In case you have RealVNC binary vnc in your path, you can always take a look, view only to avoid messing around your tests with an unintended mouse click or keyboard interrupt:

    $ ./bin/vncview 127.0.0.1:49160
    If you are running Boot2Docker on OS X then you already have a VNC client built-in. You can connect by entering vnc://<boot2docker-ip>:49160 in Safari or Alfred.
    

    When you are prompted for the password it is secret. If you wish to change this then you should either change it in the /NodeBase/Dockerfile and build the images yourself, or you can define a Docker image that derives from the posted ones which reconfigures it:

    #FROM selenium/node-chrome-debug:2.53.0
    #FROM selenium/node-firefox-debug:2.53.0
    #Choose the FROM statement that works for you.
    
    RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.