Skip to content

Commit 6a997c0

Browse files
authored
readme: add instructions for docker (#836)
We received feedback that some users prefer using src-cli via docker. We publish an image for the purpose of serve-git, so was only documented there. This includes basic information for those inclined to use docker.
1 parent 1ef0f08 commit 6a997c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ chmod +x /usr/local/bin/src
6363

6464
See [Sourcegraph CLI for Windows](WINDOWS.md).
6565

66+
### Installation: Docker
67+
68+
`sourcegraph/src-cli` is published to Docker Hub. You can use the `latest` tag or a specific version such as `3.43`. To see all versions view [sourcegraph/src-cli tags](https://hub.docker.com/r/sourcegraph/src-cli/tags).
69+
70+
```bash
71+
docker run --rm=true sourcegraph/src-cli:latest search 'hello world'
72+
```
73+
6674
## Log into your Sourcegraph instance
6775

6876
Run <code><strong>src login <i>SOURCEGRAPH-URL</i></strong></code> to authenticate `src` to access your Sourcegraph instance with your user credentials.

0 commit comments

Comments
 (0)