How to update OpenSearch version in quickstart example

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

v 2.8.0
Chrome Browser
MAC OS

Describe the issue:
I am using the quickstart setup here : Quickstart - OpenSearch Documentation
I want to use Conversational search feature, which is a part of 2.10 release. I would like to know how can I update the open search version on the docker-compose setup that I am using?

Thank you so much.

Configuration:

Relevant Logs or Screenshots:

Remove the old version image of OpenSearch and OpenSearch-Dashboards, then recreate the containers by docker-compose up, it will download the latest version and deploy with it.

Thank you, I tried that…
I deleted the old images and recreted using docker-compose up -d and when I check the version I see 2.8

curl https://localhost:9200 -ku admin:admin
{
  "name" : "opensearch-node1",
  "cluster_name" : "opensearch-cluster",
  "cluster_uuid" : "isXsULC8RiuCxH7m78SriQ",
  "version" : {
    "distribution" : "opensearch",
    "number" : "2.8.0",
    "build_type" : "tar",
    "build_hash" : "db90a415ff2fd428b4f7b3f800a51dc229287cb4",
    "build_date" : "2023-06-03T06:24:11.331474107Z",
    "build_snapshot" : false,
    "lucene_version" : "9.6.0",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}

I am using the docker-compose from https://raw.githubusercontent.com/opensearch-project/documentation-website/2.11/assets/examples/docker-compose.yml
This does not spin up 2.11 Version.

Or you can try updating the image version in the yml file to 2.11.0 explicitly:
image: opensearchproject/opensearch:2.11.0

@ugola How did you stop the containers?
docker-compose stop will only stop containers and docker-compose start will bring them back.
If you’d like to replace the image, then you must run docker-compose down. This will delete containers and keep the volumes with data. Then running docker-compose up --build will pull new images and start containers with the new image version.

1 Like