Skip to content

Commit

Permalink
Merge pull request #8 from otim-xyz/main
Browse files Browse the repository at this point in the history
added docker accessing host networking notes
  • Loading branch information
fgimenez authored May 3, 2024
2 parents c486737 + 09af2cc commit 03636fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@ $ docker run --rm \
--foundry-command "anvil"
```

**Note:** if you're adding either the `--rpc-url` or `--fork-url` flag to your forge command and the RPC endpoint you're pointing to is on host, you should use http://host.docker.internal:8545 instead of http://localhost:8545 as the value. See Docker's networking docs [here](https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host).

[anton-rs/3074-invokers]: https://github.com/anton-rs/3074-invokers
[EIP-3074]: https://eips.ethereum.org/EIPS/eip-3074

0 comments on commit 03636fd

Please sign in to comment.