Skip to content

Cannot connect to remote chrome (docker-compose) #25

@solshark

Description

@solshark

Hi,

I have chrome running as docker image with docker-compose.

If I try to connect to exposed to local machine port - it works fine, however if I try to connect using "compose" URL as host, getting just false.

Any hints?

I'm connecting like this:

    server = ChromeRemoteInterface.Session.new(host: "chrome")
    {:ok, pages} = ChromeRemoteInterface.Session.list_pages(server)

Getting this:

im_1  | ** (exit) an exception was raised:
im_1  |     ** (MatchError) no match of right hand side value: false

Docker image with chrome correctly expose needed default port. As I mentioned above, using host machine works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions