Skip to content

Commit 752984e

Browse files
committed
Update README for OpenSearch password
1 parent 2a8d6a0 commit 752984e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,26 @@ The above login command will place create an `~/.abcd` file with the following c
9595
```
9696

9797
### OpenSearch
98-
If you have an already running OpenSearch server, or install your own, then you are ready to go. Alternatively,
98+
If you have an already running OpenSearch server, or installed your own, then you are ready to go. Alternatively,
9999

100100
```sh
101101
sudo swapoff -a # optional
102102
sudo sysctl -w vm.swappiness=1 # optional
103103
sudo sysctl -w fs.file-max=262144 # optional
104104
sudo sysctl -w vm.max_map_count=262144
105-
docker run -d --rm --name abcd-opensearch -v <path-on-your-machine-to-store-database>:/data/db -p 9200:9200 --env discovery.type=single-node -it opensearchproject/opensearch:latest
105+
docker run -d --name abcd-opensearch -v <path-on-your-machine-to-store-database>:/data/db -p 9200:9200 -e "discovery.type=single-node" -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=<PASSWORD>" -it opensearchproject/opensearch:latest
106106
```
107107

108108
will download and install an OpenSearch image and run it. The connection can be tested with:
109109

110110
```sh
111-
curl -vvv -s --insecure -u admin:admin --fail https://localhost:9200
111+
curl -vvv -s --insecure -u admin:<PASSWORD> --fail https://localhost:9200
112112
```
113113

114114
To connect to an OpenSearch database that is already running, use
115115

116116
```sh
117-
abcd login opensearch://username:password@localhost
117+
abcd login opensearch://<USER>:<PASSWORD>@localhost
118118
```
119119

120120
## Remote access

0 commit comments

Comments
 (0)