# Popen with ping doesn't work in a Docker container

**URL:** <https://forum.inductiveautomation.com/t/popen-with-ping-doesnt-work-in-a-docker-container/47355>\
**Category:** Ignition\
**Created:** [June 2, 2021, 3:56pm UTC](https://forum.inductiveautomation.com/t/popen-with-ping-doesnt-work-in-a-docker-container/47355 "2021-06-02T15:56:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ken.maze](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ken.maze/32/85876_2.png) [@ken.maze](https://forum.inductiveautomation.com/u/ken.maze)\
**Post date:** [June 2, 2021, 6:03pm UTC](https://forum.inductiveautomation.com/t/popen-with-ping-doesnt-work-in-a-docker-container/47355/5 "2021-06-02T18:03:03Z")

</div>

@WillMT10 thanks for the catch. I know better, but apparently still screwed it up, and then published it! When I correct the string and put it into an array I still have the problem.

@pturmel thanks for the input, in fact when I open a bash shell for the Ignition instances ping doesn’t exist, that is probably the problem! So I tried to use .isReachable()

Looking back in threads, I found [this](http://forum.inductiveautomation.com/t/script-to-ping-computer/16612/10) so I implemented it:

```auto
def ping(address,timeout=2000):
	from java.net import InetAddress
	ip = InetAddress.getByName(address)
	return ip.isReachable(timeout)

```

When I run this in a container, it always comes back false. When run non-container, it works correctly.

I’m running following to start the container:

```auto
docker run -p 8092:8088 --name my-ignition -e GATEWAY_ADMIN_PASSWORD=password -e IGNITION_EDITION=full -d kcollins/ignition:8.0.17

```

Thanks for the help everyone!

---

_[View the full topic](https://forum.inductiveautomation.com/t/popen-with-ping-doesnt-work-in-a-docker-container/47355)._
