Skip to content

Commit

Permalink
chore(docs): Add basic docker usage info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Thurman committed Mar 4, 2020
1 parent 81e592a commit 4db094e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,48 @@ Today pre-release binaries have been created on the GitHub releases page. You
can dowload the latest release [here](https://github.com/newrelic/newrelic-cli/releases)


### Docker

There is a docker image that can be utilized for running commands as well. Here is an example:

```bash
# Pull the latest container
$ docker pull newrelic/cli

# Run the container interactively, remove it once the command exists
# Also must pass $NEW_RELIC_API_KEY to the container
$ docker run -it --rm \
-e NEW_RELIC_API_KEY="$NEW_RELIC_API_KEY" \
newrelic/cli \
newrelic apm application get --name WebPortal

[
{
"AccountID": 2508259,
"ApplicationID": 204261368,
"Domain": "APM",
"EntityType": "APM_APPLICATION_ENTITY",
"GUID": "MjUwODI1OXxBUE18QVBQTElDQVRJT058MjA0MjYxMzY4",
"Name": "WebPortal",
"Permalink": "https://one.newrelic.com/redirect/entity/MjUwODI1OXxBUE18QVBQTElDQVRJT058MjA0MjYxMzY4",
"Reporting": true,
"Type": "APPLICATION"
},
{
"AccountID": 756053,
"ApplicationID": 58445375,
"Domain": "APM",
"EntityType": "APM_APPLICATION_ENTITY",
"GUID": "NzU2MDUzfEFQTXxBUFBMSUNBVElPTnw1ODQ0NTM3NQ",
"Name": "WebPortal",
"Permalink": "https://one.newrelic.com/redirect/entity/NzU2MDUzfEFQTXxBUFBMSUNBVElPTnw1ODQ0NTM3NQ",
"Reporting": true,
"Type": "APPLICATION"
}
]
```


### Getting Help

In order to get help about what commands are available, the trusty `--help`
Expand Down

0 comments on commit 4db094e

Please sign in to comment.