From 1fc84b3ee374a6c80597ed2cc6fa4f327d35136c Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Mon, 25 Sep 2023 12:50:43 -0400 Subject: [PATCH] Add doc for docker run --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0a9889b..cc35068 100644 --- a/README.md +++ b/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