Skip to content

Commit

Permalink
Extract major version in installation section into a variable (#9219)
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <[email protected]>
(cherry picked from commit dd9a4a4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Feb 17, 2025
1 parent 7e8c264 commit b7be506
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _install-and-configure/install-opensearch/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,23 @@ Official OpenSearch images are hosted on [Docker Hub](https://hub.docker.com/u/o

[Docker Hub](https://hub.docker.com/u/opensearchproject/):
```bash
docker pull opensearchproject/opensearch:2
docker pull opensearchproject/opensearch:{{ site.opensearch_version | split: "." | first }}
```
{% include copy.html %}

```bash
docker pull opensearchproject/opensearch-dashboards:2
docker pull opensearchproject/opensearch-dashboards:{{ site.opensearch_version | split: "." | first }}
```
{% include copy.html %}

[Amazon ECR](https://gallery.ecr.aws/opensearchproject/):
```bash
docker pull public.ecr.aws/opensearchproject/opensearch:2
docker pull public.ecr.aws/opensearchproject/opensearch:{{ site.opensearch_version | split: "." | first }}
```
{% include copy.html %}

```bash
docker pull public.ecr.aws/opensearchproject/opensearch-dashboards:2
docker pull public.ecr.aws/opensearchproject/opensearch-dashboards:{{ site.opensearch_version | split: "." | first }}
```
{% include copy.html %}

Expand Down Expand Up @@ -143,7 +143,7 @@ Before continuing, you should verify that Docker is working correctly by deployi
```
{% include copy.html %}

Remember that `docker container ls` does not list stopped containers. If you would like to review stopped containers, use `docker container ls -a`. You can remove unneeded containers manually with `docker container rm <containerId_1> <containerId_2> <containerId_3> [...]` (pass all container IDs you wish to stop, separated by spaces), or if you want to remove all stopped containers, you can use the shorter command `docker container prune`.
Remember that `docker container ls` does not list stopped containers. If you would like to review stopped containers, use `docker container ls -a`. You can remove unneeded containers manually with `docker container rm <containerId_1> <containerId_2> <containerId_3> [...]` (pass all container IDs you want to stop, separated by spaces), or if you want to remove all stopped containers, you can use the shorter command `docker container prune`.
{: .tip}

## Deploy an OpenSearch cluster using Docker Compose
Expand Down

0 comments on commit b7be506

Please sign in to comment.