> For the complete documentation index, see [llms.txt](https://docs.goplugin.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goplugin.co/plugin-1.0-installations-deprecated/how-to-install-plugin-1.0-node/docker-method/docker-phase-2.md).

# Docker - Phase 2

After the successful execution of Phase 1, you should follow the below steps to set up an external-initiator and bridge the event.

Step 1 - Run the below command to login the Plugin node via CLI

```
sudo docker exec -it <Container_id> /bin/bash -c ". ~/.profile && plugin admin login -f /pluginAdm/.env.apicred"
```

For example - From Phase 1, the container\_Id is -> 59961fcd0f4f

```
sudo docker exec -it 59961fcd0f4f /bin/bash -c ". ~/.profile && plugin admin login -f /pluginAdm/.env.apicred"
```

Step 2 - Run the below command to create a record using external-initiator

```
sudo docker exec -it <Container_id> /bin/bash -c ". ~/.profile && plugin initiators create pluginei http://localhost:8080/jobs"
```

After replacing the container\_id the command below is

```
sudo docker exec -it 59961fcd0f4f /bin/bash -c ". ~/.profile && plugin initiators create pluginei http://localhost:8080/jobs"
```

Successful execution will result in the below output

```
╬══════════╬════════════════════════════╬══════════════════════════════════╬══════════════════════════════════════════════════════════════════╬══════════════════════════════════════════════════════════════════╬══════════════════════════════════════════════════════════════════╬
║   NAME   ║            URL             ║            ACCESSKEY             ║                              SECRET                              ║                          OUTGOINGTOKEN                           ║                          OUTGOINGSECRET                          ║
╬══════════╬════════════════════════════╬══════════════════════════════════╬══════════════════════════════════════════════════════════════════╬══════════════════════════════════════════════════════════════════╬══════════════════════════════════════════════════════════════════╬
║ pluginei ║ http://localhost:8080/jobs ║ ac3f582257d04a93a4c02d93b6425cf2 ║ y6c6mJI+27tVK1Lro6D1mNZ9GYQu/LXOdHZXlZZSVyqJrxAe0y6kfK5QF+EJY4qY ║ f6ZZBaMfBxm0ZcRQUkgMe/TApjE4VP0jOt2b2Bi+UDqSw05jb/IZl09cDVsfb4cF ║ ts3H54xnNSWZQo4WyImTXn6LKg1ymmx6gy0zu9p076bNo/kqSR0V6Yrck3IF1iti ║
```

Step 3 - Just apply this key information in "ei.env" file in the order you see

![For example, after we apply the key information. Our ei.env is like above](/files/QaydVCZ9L52RepGlOUgy)

Step 4 - Finally, run the below commands to start the "external initiator"

```
sudo docker exec --env-file ei.env -it <container_id> /bin/bash -c ". ~/.profile && pm2 start /pluginAdm/startEI.sh"
```

Change the container\_id to yours.. For example, here it is&#x20;

```
sudo docker exec --env-file ei.env -it 59961fcd0f4f /bin/bash -c ". ~/.profile && pm2 start /pluginAdm/startEI.sh"
```

You should see two jobs running in the PM2 list. To verify the same, apply the below command

```
sudo docker exec -it <container_id> /bin/bash -c "pm2 list"
```

sudo docker exec -it 59961fcd0f4f /bin/bash -c "pm2 list"

![](/files/y03JbGQ9HVOudLTQdIoH)

If you see it online!, you are good to proceed and skip the "EXTERNAL INITIATORS" section and jump onto the "ORACLE" section.

### Video Tutorial for this section -&#x20;

{% embed url="<https://youtu.be/CeYutJt-tko>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.goplugin.co/plugin-1.0-installations-deprecated/how-to-install-plugin-1.0-node/docker-method/docker-phase-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
