Add doc for docker run
This commit is contained in:
parent
f5730d2691
commit
1fc84b3ee3
11
README.md
11
README.md
@ -2,18 +2,21 @@ CLI tool to manage cloudflare DNS records
|
||||
|
||||
## Installation
|
||||
|
||||
### Using go
|
||||
### Using [go](https://go.dev)
|
||||
```bash
|
||||
❯ go install go.balki.me/cloudflare-dns-cli@latest
|
||||
|
||||
# Or run directly
|
||||
❯ go run go.balki.me/cloudflare-dns-cli@latest
|
||||
# Run directly without installing
|
||||
❯ go run go.balki.me/cloudflare-dns-cli@latest -h
|
||||
|
||||
```
|
||||
### Using docker
|
||||
### Using [docker](https://www.docker.com)
|
||||
```bash
|
||||
❯ mkdir -p $HOME/bin
|
||||
❯ docker run --pull=always --rm -v "$HOME/bin:/op" golang sh -c "go install go.balki.me/cloudflare-dns-cli@latest && install -o $(id -u) -g $(id -g) /go/bin/cloudflare-dns-cli /op/"
|
||||
|
||||
# Run directly without installing
|
||||
❯ docker run --pull=always --rm golang go run go.balki.me/cloudflare-dns-cli@latest -h
|
||||
```
|
||||
|
||||
## Features
|
||||
|
Loading…
Reference in New Issue
Block a user