# Unable to run Elasticsearch upgrade with docker

**URL:** <https://discuss.elastic.co/t/unable-to-run-elasticsearch-upgrade-with-docker/202508>\
**Category:** Elasticsearch\
**Created:** [October 7, 2019, 9:16am UTC](https://discuss.elastic.co/t/unable-to-run-elasticsearch-upgrade-with-docker/202508 "2019-10-07T09:16:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imran-baig-se](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imran-baig-se/32/55518_2.png) [@imran-baig-se](https://discuss.elastic.co/u/imran-baig-se)\
**Post date:** [October 7, 2019, 9:16am UTC](https://discuss.elastic.co/t/unable-to-run-elasticsearch-upgrade-with-docker/202508/1 "2019-10-07T09:16:20Z")

</div>

Hello there,

after I try to upgrade from 6.8.0 to 7.3.2 . was getting java warrings

$ sudo docker-compose up  
Starting elasticsearch ... done  
Attaching to elasticsearch  
elasticsearch | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
elasticsearch exited with code 1

even I try to role back it wont work still get the same error.

below is my docker -compose file

# - bash

# - -c

# - "bin/elasticsearch-plugin install -b repository-s3;

# bin/elasticsearch-keystore create;

# echo AKIA3TEYUDEZ4SZW7G4B | bin/elasticsearch-keystore add --stdin -f s3.client.default.access\_key;

# echo DxnJu/KpW44DAxNRLrqu0MeZi310nPfV/Pi8NOtK | bin/elasticsearch-keystore add --stdin -f s3.client.default.secret\_key;

# /usr/local/bin/docker-entrypoint.sh elasticsearch"

```
environment:
  - cluster.name=dev-ops-elasticsearch-cluster-extra
  - bootstrap.memory_lock=true
  - bootstrap.system_call_filter=false
  - "ES_JAVA_OPTS=-Xms7178m -Xmx7178m -Djava.io.tmpdir=/tmp/elasticsearch"
volumes:
  - /data/log/elasticsearch:/var/log/elasticsearch
  - /data/tmp/elasticsearch:/tmp/elasticsearch
  - /opt/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  - /opt/elasticsearch/config/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties
  - /opt/elasticsearch/config/synonym.txt:/usr/share/elasticsearch/config/analysis/synonym.txt
  - /opt/elasticsearch/config/stopword.txt:/usr/share/elasticsearch/config/analysis/stopword.txt
  - /data/var/lib/elasticsearch:/usr/share/elasticsearch/data1
  - /data/tmp/backup:/tmp/backup

ports:
  - 9200:9200
  - 9300:9300
network_mode: host

```

please help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2019, 9:16am UTC](https://discuss.elastic.co/t/unable-to-run-elasticsearch-upgrade-with-docker/202508/2 "2019-11-04T09:16:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
