# Cannot enable x-pack with basic-flavor elastic docker image (6.0.0)

**URL:** https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166
**Category:** Elasticsearch
**Created:** [November 17, 2017, 4:42pm UTC](https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166 "2017-11-17T16:42:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![john\_int](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@john\_int](https://discuss.elastic.co/u/john_int)
#### Post date: [November 17, 2017, 4:42pm UTC](https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166/1 "2017-11-17T16:42:41Z")

</div>

Greetings.

Following the docs  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)

i'm downloading the basic-flavor image.  
Running it with  
docker run -d -p 9200:9200   
-e "http.host=0.0.0.0"   
-e "transport.host=127.0.0.1"   
--name elastic [docker.elastic.co/elasticsearch/elasticsearch:6.0.0](http://docker.elastic.co/elasticsearch/elasticsearch:6.0.0)

which means x-pack.security should be enabled by default as it is, but the available property is "False" and i can access es without prompting for credentials.

Here is the localhost:9200/\_xpack output  
{  
build: {  
hash: "cc96bca",  
date: "2017-11-10T19:36:09.930Z"  
},  
features: {  
graph: {  
description: "Graph Data Exploration for the Elastic Stack",  
available: false,  
enabled: true  
},  
logstash: {  
description: "Logstash management component for X-Pack",  
available: false,  
enabled: true  
},  
ml: {  
description: "Machine Learning for the Elastic Stack",  
available: false,  
enabled: true,  
native\_code\_info: {  
version: "6.0.0",  
build\_hash: "8e6ab35cf803a2"  
}  
},  
monitoring: {  
description: "Monitoring for the Elastic Stack",  
available: true,  
enabled: true  
},  
security: {  
**description: "Security for the Elastic Stack",**  
**available: false,**  
**enabled: true**  
},  
watcher: {  
description: "Alerting, Notification and Automation for the Elastic Stack",  
available: false,  
enabled: true  
}  
},  
tagline: "You know, for X"  
}

Am i doing something wrong?

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 18, 2017, 12:58am UTC](https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166/2 "2017-11-18T00:58:56Z")

</div>

The basic flavour of the ES6 Docker image comes with an X-Pack basic license.

You can read about the inclusions for each license type here: [https://www.elastic.co/subscriptions](https://www.elastic.co/subscriptions)

X-Pack basic does not include security.

---

<div class="post-metadata">

### Author: ![john\_int](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@john\_int](https://discuss.elastic.co/u/john_int)
#### Post date: [November 21, 2017, 7:58am UTC](https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166/3 "2017-11-21T07:58:42Z")

</div>

Ah, I thought it did.  
That means we can't use our custom oAUth2 for user login right?  
As far as i understand this can be done only with x-pack security running on ES, correct?

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 21, 2017, 9:44am UTC](https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166/4 "2017-11-21T09:44:34Z")

</div>

Well it depends how your custom Oauth works.

If you are dependent on X-Pack security, then you need the platinum flavour of our Docker image.  
If you just want to put an Oauth proxy in front of ES/Kibana then you might be able to get that to work.

---

<div class="post-metadata">

### Author: ![john\_int](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@john\_int](https://discuss.elastic.co/u/john_int)
#### Post date: [November 21, 2017, 1:59pm UTC](https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166/5 "2017-11-21T13:59:02Z")

</div>

Thank you very much TIm.

---

<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: [December 19, 2017, 1:59pm UTC](https://discuss.elastic.co/t/cannot-enable-x-pack-with-basic-flavor-elastic-docker-image-6-0-0/108166/6 "2017-12-19T13:59:16Z")

</div>

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