# Logstash only binding to IPv6 in Docker

**URL:** https://discuss.elastic.co/t/logstash-only-binding-to-ipv6-in-docker/195608
**Category:** Logstash
**Created:** [August 17, 2019, 4:20pm UTC](https://discuss.elastic.co/t/logstash-only-binding-to-ipv6-in-docker/195608 "2019-08-17T16:20:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thedraketaylor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thedraketaylor/32/52283_2.png) [@thedraketaylor](https://discuss.elastic.co/u/thedraketaylor)
#### Post date: [August 17, 2019, 4:20pm UTC](https://discuss.elastic.co/t/logstash-only-binding-to-ipv6-in-docker/195608/1 "2019-08-17T16:20:50Z")

</div>

I've been working with logstash for the past week and so far it's been great. Yesterday I decided to switch from using it in a vagrant box to docker, so I downloaded the official docker image from [docker.elastic.co/logstash/logstash:7.3.0](http://docker.elastic.co/logstash/logstash:7.3.0) and spun up a container. The issue I'm having is that it's only binding to IPv6. I had this issue while running on vagrant, but was able to fix it with adding '-Djava.net.preferIPv4Stack=true' to the bottom of the jvm.options file. This does not work with the docker container. Any ideas on how to get logstash to bind to ipv4 within docker?

---

<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 14, 2019, 4:20pm UTC](https://discuss.elastic.co/t/logstash-only-binding-to-ipv6-in-docker/195608/2 "2019-09-14T16:20:57Z")

</div>

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