# How to use docker without xpack features (aka how to make the license expiration message go away)

**URL:** <https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236>\
**Category:** Elasticsearch\
**Created:** [September 4, 2018, 2:59pm UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236 "2018-09-04T14:59:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluecoffee](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@bluecoffee](https://discuss.elastic.co/u/bluecoffee)\
**Post date:** [September 4, 2018, 2:59pm UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236/1 "2018-09-04T14:59:42Z")

</div>

**Problem:**

I run an ElasticSearch instance in a docker container. I am not using any xpack.security features (or at least, not knowingly - that may be the problem...). I keep getting License Expiration warnings:

```auto
elasticsearch_1 | # LICENSE [EXPIRED] ON [xxx 2018]. IF YOU HAVE A NEW LICENSE, PLEASE UPDATE IT.
elasticsearch_1 | # OTHERWISE, PLEASE REACH OUT TO YOUR SUPPORT CONTACT.
elasticsearch_1 | # 
elasticsearch_1 | # COMMERCIAL PLUGINS OPERATING WITH REDUCED FUNCTIONALITY
elasticsearch_1 | # - security
elasticsearch_1 | # - Cluster health, cluster stats and indices stats operations are blocked
elasticsearch_1 | # - All data operations (read and write) continue to work
elasticsearch_1 | # - watcher
elasticsearch_1 | # - PUT / GET watch APIs are disabled, DELETE watch API continues to work
elasticsearch_1 | # - Watches execute and write to the history
elasticsearch_1 | # - The actions of the watches don't execute
elasticsearch_1 | # - monitoring
elasticsearch_1 | # - The agent will stop collecting cluster and indices metrics
elasticsearch_1 | # - The agent will stop automatically cleaning indices older than [xpack.monitoring.history.duration]
elasticsearch_1 | # - graph
elasticsearch_1 | # - Graph explore APIs are disabled
elasticsearch_1 | # - ml
elasticsearch_1 | # - Machine learning APIs are disabled
elasticsearch_1 | # - logstash
elasticsearch_1 | # - Logstash specific APIs are disabled. You can continue to manage and poll stored configurations
elasticsearch_1 | # - deprecation
elasticsearch_1 | # - Deprecation APIs are disabled
elasticsearch_1 | # - upgrade
elasticsearch_1 | # - Upgrade API is disabled

```

So I do not want to purchase a paid license, BUT I want that message to go away. I am fully aware that some features of xpack will not work without a paid license, and I am ok with that. I am not using xpack.security anyway. How to make it go away?

**What I've tried:**

I have set "xpack.security.enabled" to false and "xpack.monitoring.enabled" to false, an no other xpack-settings, and I still get those warnings. This is totally annoying and fills up my logs.

**Where I've looked:**

- X-Pack License Settings ([https://www.elastic.co/guide/en/elasticsearch/reference/6.2/license-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/license-settings.html)) tells me how to start a trial, but my trial is over. It does not tell me how to set it to Open-Source-Only.

- License Management ([https://www.elastic.co/guide/en/x-pack/6.2/license-management.html](https://www.elastic.co/guide/en/x-pack/6.2/license-management.html)) tells me how to generate a trial license (which I don't want) and how to update my license with a license JSON file (but I don't want to purchase one).

- License Expiration ([https://www.elastic.co/guide/en/x-pack/6.2/license-expiration.html](https://www.elastic.co/guide/en/x-pack/6.2/license-expiration.html)) tells me that _"Your X-Pack license is time based and expires at a future date. If you’re using X-Pack monitoring and your license will expire within 30 days, a license expiration warning is displayed prominently. Warnings are also displayed on startup and written to the Elasticsearch log starting 30 days from the expiration date. These error messages tell you when the license expires and what features will be disabled if you fail to update the license."_, ok got it, I know what's disabled, fine - now how stop the warning?

- Subscriptions ([https://www.elastic.co/subscriptions](https://www.elastic.co/subscriptions)) tells me what is included in the OpenSource license, but now how to activate (?) it. I guess I have to _uninstall_ XPack altogether, but I have no idea how to uninstall it on a docker image.

- The Install-With-Docker page ([https://www.elastic.co/guide/en/elasticsearch/reference/6.4/docker.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/docker.html)) says that _"These images are free to use under the Elastic license. They contain open source and free commercial features and access to paid commercial features [...]. Alternatively, you can download other Docker images that contain only features available under the Apache 2.0 license. To download the images, go to [www.docker.elastic.co](http://www.docker.elastic.co)."_, but when I go to the indicated page, I do not see how I can download the Apache-Only images. I only see a list of Docker images, without any difference.

Please, help me to...

- (a) switch off the warning about an expired license for something I do not even intend to use,
- (b) switch off xpack altogether - that must be possible?, and/or
- (c) finding Docker images that only contain Apache-licenses features.

At the moment, this issue annoys me so much that I am thinking of stopping to use ElasticSearch altogether. It seems to be quite difficult to use the OpenSource version.

* * *

Some more info:  
Using the lince API (/\_xpack/license) to check tells me this:

```auto
{
  "license" : {
    "status" : "expired",
    "uid" : "xxx",
    "type" : "basic",
    "issue_date" : "2018-xxx",
    "issue_date_in_millis" : xxx,
    "expiry_date" : "2018-xxx",
    "expiry_date_in_millis" : xxx,
    "max_nodes" : 1000,
    "issued_to" : "xxx",
    "issuer" : "elasticsearch",
    "start_date_in_millis" : -1
  }
}

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 5, 2018, 12:08am UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236/2 "2018-09-05T00:08:59Z")

</div>

What version are you on?

---

<div class="post-metadata">

**Author:** ![bluecoffee](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@bluecoffee](https://discuss.elastic.co/u/bluecoffee)\
**Post date:** [September 6, 2018, 9:03am UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236/3 "2018-09-06T09:03:57Z")

</div>

Hi!  
I'm using the docker image of 6.1.1 ([docker.elastic.co/elasticsearch/elasticsearch:6.1.1](http://docker.elastic.co/elasticsearch/elasticsearch:6.1.1)).

---

<div class="post-metadata">

**Author:** ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)\
**Post date:** [September 7, 2018, 4:01am UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236/4 "2018-09-07T04:01:47Z")

</div>

I understand not wanting a trial licence. However, a free _Basic_ licence may suit your needs.

[https://register.elastic.co/](https://register.elastic.co/)

Alternatively, for version 6.1.1, the OSS-only image is available as `docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.1`

The same `-oss` pattern applies for the other components, too.

---

<div class="post-metadata">

**Author:** ![bluecoffee](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@bluecoffee](https://discuss.elastic.co/u/bluecoffee)\
**Post date:** [September 7, 2018, 7:44am UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236/5 "2018-09-07T07:44:53Z")

</div>

Hi Toby!  
Thank you, that was exactly what I looked for. Very helpful!  
I'll have a look at the Basic license.  
Have a nice weekend!

---

<div class="post-metadata">

**Author:** ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)\
**Post date:** [September 7, 2018, 10:11am UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236/6 "2018-09-07T10:11:40Z")

</div>

Excellent!

Good weekend to you, too!

---

<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:** [October 5, 2018, 10:11am UTC](https://discuss.elastic.co/t/how-to-use-docker-without-xpack-features-aka-how-to-make-the-license-expiration-message-go-away/147236/7 "2018-10-05T10:11:54Z")

</div>

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