# Setup-Passwords

**URL:** <https://discuss.elastic.co/t/setup-passwords/122375>\
**Category:** Elasticsearch\
**Created:** [March 3, 2018, 3:08pm UTC](https://discuss.elastic.co/t/setup-passwords/122375 "2018-03-03T15:08:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thespatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thespatt/32/7979_2.png) [@thespatt](https://discuss.elastic.co/u/thespatt)\
**Post date:** [March 3, 2018, 3:08pm UTC](https://discuss.elastic.co/t/setup-passwords/122375/1 "2018-03-03T15:08:43Z")

</div>

I'm trying to run the docker containers set up to run on port 9210. When running the setup-passwords command, I get "Connection failure to: [http://172.18.0.2:9200/\_xpack/security/\_authenticate?pretty](http://172.18.0.2:9200/_xpack/security/_authenticate?pretty) failed" but I can't find where to set the url for that command.

---

<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:** [March 3, 2018, 4:04pm UTC](https://discuss.elastic.co/t/setup-passwords/122375/2 "2018-03-03T16:04:06Z")

</div>

You want to use the `--url` option

[https://www.elastic.co/guide/en/elasticsearch/reference/6.2/setup-passwords.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/setup-passwords.html)

---

<div class="post-metadata">

**Author:** ![thespatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thespatt/32/7979_2.png) [@thespatt](https://discuss.elastic.co/u/thespatt)\
**Post date:** [March 3, 2018, 8:01pm UTC](https://discuss.elastic.co/t/setup-passwords/122375/3 "2018-03-03T20:01:30Z")

</div>

Thanks, I don't know why searching setup-passwords didn't turn that up earlier.

---

<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:** [March 31, 2018, 8:01pm UTC](https://discuss.elastic.co/t/setup-passwords/122375/4 "2018-03-31T20:01:59Z")

</div>

Closed on March 31, 2018, 8:01pm UTC

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