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,

  • Securing Mongo when in Docker Container
  • Log client's “real” IP address in Docker Swarm 1.12 when accessing a service
  • A Neo4j container (docker) with initial data in it
  • Ubuntu 16.10 in Docker 1.12 claims there is no socket for MySQL
  • Docker-machine host env on multiple computers?
  • How to stop gcloud docker -a overwriting long-lived credentials?
    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?

  • Docker container calls binary from another container
  • Docker Nginx image with static content from an external volume - permissions issue
  • How can I find public images (like ubuntu) in Docker-Hub, using REST API?
  • Deploying .net core app to docker gives “Microsoft.DotNet.Props” not found error
  • what is Server error: Status 0 while fetching image layer
  • Oracle 11g docker SELECT very slow
  • 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

    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
    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.