-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Running the Docker Image
Thomas edited this page May 14, 2018
·
17 revisions
- If using the local Devnet, follow these instructions to start that image.
- If connecting to an Ethereum client, make sure that is running first with websocket enabled.
Download the latest version:
$ docker pull smartcontract/chainlink:latest
Create an environment file and populate with your variables, for example:
$ touch /home/$USER/.env
And populate it with values. You will need to change the ETH_CHAIN_ID to the network you're connecting to.
LOG_LEVEL=debug
PASSWORD=twochains
ETH_URL=ws://172.17.0.1:18546
ETH_CHAIN_ID=17
TX_MIN_CONFIRMATIONS=2
CLIENT_NODE_URL=http://172.17.0.3:6688
Now you can run the Docker image:
$ docker run -it --env-file=/home/$USER/.env smartcontract/chainlink n
In a new window, you can interact with the Docker instance by using the command-line API. For example:
$ docker run -it --env-file=/home/$USER/.env smartcontract/chainlink j