Google Chrome on Docker Container

Google Chrome

If you have a requirement to run Google Chrome browser inside a container we can easily achieve this by using TekFik provided CentOS 7 container. TekFik Centos 7 Container image runs google-chrome in the command line and exposes TCP port 3000 to access google chrome from the web browser inside the container. Refer to the solution section to run Google Chrome on Docker Container.


Topic

  • How to run Google Chrome on Docker Container?
  • Google Chrome on Docker Container
  • Install chrome on Docker Container
  • Chrome docker image


Solution


  • Execute the following command to pull chrome docker image Image:
    $ docker pull tekfik/chrome

  • Execute the following command to run chrome docker container:
    $ docker run --name chrome --privileged -p 3000:3000 -d tekfik/chrome

  • Browse Chrome inside the container with the following URL
    http://localhost:3000

To build your own container browse the following Github URL:
https://github.com/TekFik/chrome-web

Video Tutorial – Chrome on Docker Container



You May Also Like

avatar

About the Author: TekFik

TekFik is a technical blogging site helps techies and engineers to solve their day to day issues and also allows everyone to share knowledge and feedback. Please feel free to contact us at tekfik.rd@gmail.com if there is anything.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *