Home > Back-end >  Upgrade ELK on docker from 7.10 to 7.17
Upgrade ELK on docker from 7.10 to 7.17

Time:09-03

Need to upgrade Elasticsearch , Kibana installed with docker compose as a 3 node cluster on linux from 7.10 to 7.17 This document shares other methods but not containers installed/started with docker compose - swarm. Is their a step by step documentation for the same?

CodePudding user response:

I have upgraded from my elastic from 7.10 to 7.17.6 I have not faced any issues. I have just used docker compose in this scenario. In your case can you try to rename your elastic search it seems that's your older elastic container is still up and its conflicting the name? If this is not a production setup let me know we could try few more things as well.

version: '2.2'
services:
  es01:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.17.6
    container_name: es01
    environment:
      - node.name=es01
      - cluster.name=es-docker-cluster
      - cluster.initial_master_nodes=es01
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - data01:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
    networks:
      - elastic

  kib01:
    image: docker.elastic.co/kibana/kibana:7.17.6
    container_name: kib01
    ports:
      - 5601:5601
    environment:
      ELASTICSEARCH_URL: http://es01:9200
      ELASTICSEARCH_HOSTS: '["http://es01:9200"]'
    networks:
      - elastic

volumes:
  data01:
    driver: local
  data02:
    driver: local
  data03:
    driver: local

networks:
  elastic:
    driver: bridge
  • Related