diff --git a/README.md b/README.md index 69b732c..53ae0b3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ # docker-tags -list all tags for a Docker image on a remote registry. \ No newline at end of file +List all tags for a Docker image on a remote registry. + +## Usage + +Build and install binaries into `/${CARGO_HOME}/bin` by default. + +``` +cargo install --path . --locked +``` + +> Cargo install ignores Cargo.lock by default. +> Use `--locked` to match `cargo build --release` would build. + +Change the location by `--root` option. + +``` +cargo install --path --locked --root /usr/local +``` \ No newline at end of file