# Kibana(6.7.2) run in docker raise \[ERR\_TOO\_MANY\_REDIRECTS\]

**URL:** <https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [August 21, 2019, 9:34am UTC](https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077 "2019-08-21T09:34:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chen\_steven](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chen_steven/32/50311_2.png) [@chen\_steven](https://discuss.elastic.co/u/chen_steven)\
**Post date:** [August 21, 2019, 9:34am UTC](https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077/1 "2019-08-21T09:34:59Z")

</div>

OS: centos 7  
kibana version: 6.7.2  
Docker version 1.13.1, build b2f74b2/1.13.1  
docker-compose version 1.18.0, build 8dd22a9  
and other odds and ends

I've tried to start a kibana node by docker-compose

> ```
> version: '2'
> services:
> kibana:
> image: docker.elastic.co/kibana/kibana:6.7.2
> ports:
> - "5601:5601"
> environment:
> - SERVER_NAME=T4-ximei-es001
> - ELASTICSEARCH_HOSTS=http://${ip}:9200
> 
> ```

but when i tried to access the url: http://${ip}:5601, the ERR\_TOO\_MANY\_REDIRECTS (302) was raised, and the url will be redirected (sometime) to http://${ip}:5601 or http://${ip}:5601/app/kibana

I've tried to find the makefile/dockerfile .etc in github then, but the [kibana-docker](https://github.com/elastic/kibana-docker) project is in archived status which the top version is 6.6.

My question is, how does this issue happens? and how can i find the original docker file which built this image?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [August 21, 2019, 7:29pm UTC](https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077/2 "2019-08-21T19:29:42Z")

</div>

> [@chen\_steven](#):
>
> how can i find the original docker file which built this image?

The Dockerfile template was moved from the kibana-docker repo to the Kibana repo, and it's now here: [https://github.com/elastic/kibana/blob/86c3ac4ff4f8b69d71116a359bfc8aaf8b872ed4/src/dev/build/tasks/os\_packages/docker\_generator/templates/dockerfile.template.js](https://github.com/elastic/kibana/blob/86c3ac4ff4f8b69d71116a359bfc8aaf8b872ed4/src/dev/build/tasks/os_packages/docker_generator/templates/dockerfile.template.js)

There could be various reasons for TOO\_MANY\_REDIRECTS, that usually have to do with how the application is deployed. In a development environment, this can happen when the URL path to Kibana changes without clearing session cookies from the browser.

The typical suggestions would be to try a different browser, try incognito mode in your browser, try clearing cookies from your browser, try a different computer etc. Hopefully that will address your problem, since the docker compose file seems very basic.

---

<div class="post-metadata">

**Author:** ![chen\_steven](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chen_steven/32/50311_2.png) [@chen\_steven](https://discuss.elastic.co/u/chen_steven)\
**Post date:** [August 22, 2019, 7:54am UTC](https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077/3 "2019-08-22T07:54:40Z")

</div>

Thx tsullivan, I found the docker template then, it seems that my dockerfile is correct ☹

It seems like this issue happened caused by the docker images' x-pack, I start up an ES cluster myself and set up the kibana by dockerfile. ref: [https://github.com/elastic/kibana-docker/issues/35](https://github.com/elastic/kibana-docker/issues/35)

Is there any possible to disable the xpack in docker image then?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [August 22, 2019, 4:43pm UTC](https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077/4 "2019-08-22T16:43:05Z")

</div>

Based on that issue, it looks like someone was having problems with the redirect that Kibana was making to the Login page, done via the X-Pack Security feature.

There is an "OSS Flavor" of Docker images that do not have X-Pack installed. The docker images are linked from the docs here: [https://www.elastic.co/guide/en/kibana/6.7/docker.html#pull-image](https://www.elastic.co/guide/en/kibana/6.7/docker.html#pull-image) and following the [www.docker.elastic.co](https://www.docker.elastic.co/) link will show you each version, which includes default and OSS versions. A direct link to Kibana OSS 6.7.2 Docker image is here [https://www.docker.elastic.co/#kibana-6-7-2-oss](https://www.docker.elastic.co/#kibana-6-7-2-oss)

---

<div class="post-metadata">

**Author:** ![chen\_steven](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chen_steven/32/50311_2.png) [@chen\_steven](https://discuss.elastic.co/u/chen_steven)\
**Post date:** [August 27, 2019, 3:10am UTC](https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077/5 "2019-08-27T03:10:29Z")

</div>

Cheers bro, it's a big help for me then 😃

---

<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:** [September 24, 2019, 3:10am UTC](https://discuss.elastic.co/t/kibana-6-7-2-run-in-docker-raise-err-too-many-redirects/196077/6 "2019-09-24T03:10:29Z")

</div>

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