Add doc for docker run

This commit is contained in:
Balakrishnan Balasubramanian 2023-09-25 12:50:43 -04:00
parent f5730d2691
commit 1fc84b3ee3

View File

@ -2,18 +2,21 @@ CLI tool to manage cloudflare DNS records
## Installation ## Installation
### Using go ### Using [go](https://go.dev)
```bash ```bash
go install go.balki.me/cloudflare-dns-cli@latest go install go.balki.me/cloudflare-dns-cli@latest
# Or run directly # Run directly without installing
go run go.balki.me/cloudflare-dns-cli@latest go run go.balki.me/cloudflare-dns-cli@latest -h
``` ```
### Using docker ### Using [docker](https://www.docker.com)
```bash ```bash
mkdir -p $HOME/bin 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/" 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 ## Features