Skip to content

Run a local Graph Node on linux problem with host.docker.internal #1149

Closed
@Npizza

Description

@Npizza

Do you want to request a feature or report a bug?
bug
What is the current behavior?
I am trying to set up localy graph node with docker and when I am trying to fix the host.docker.internal bug something is not going as expected.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

I am following the instructions on the https://thegraph.com/docs/quick-start .
First I Set up Ganache CLI then I am trying to run the Graph Node.
I Clone Graph Node, Enter the Graph Node's Docker directory and then I go to Note for Linux users:

There I type the command:
$ CONTAINER_ID=$(docker container ls | grep graph-node | cut -d' ' -f1)
and then the command:
$ docker exec $CONTAINER_ID /bin/bash -c 'ip route | awk \'/^default via /{print $3}\''

But the bash I think is waiting for me to complete the command.
So I look what the CONTAINER_ID variable has with echo and I found out that there is nothing there.
Then I type docker container ls to see what is the list of the containers and I found that is empty too.

What I am missing?

What is the expected behavior?
To print the host's IP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions