# Communication between containers in the same pod

**URL:** <https://forums.suse.com/t/communication-between-containers-in-the-same-pod/16690>\
**Category:** SUSE Rancher Prime\
**Created:** [February 27, 2020, 1:10am UTC](https://forums.suse.com/t/communication-between-containers-in-the-same-pod/16690 "2020-02-27T01:10:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![protrafree](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/protrafree/32/5078_2.png) [@protrafree](https://forums.suse.com/u/protrafree)\
**Post date:** [February 27, 2020, 1:10am UTC](https://forums.suse.com/t/communication-between-containers-in-the-same-pod/16690/1 "2020-02-27T01:10:12Z")

</div>

for my sample apps i need these container (A and B) in the same pod communicate using container name, i found links that it need sharing volume between these two container for communicate

is there any way that less “extra configuration” to do it ?

i’ve been tested it using telnet from containerB like

```
telnet containerA 80

```

but it return **bad address** , so i think dns cant resolve containerA address

help pls

---

<div class="post-metadata">

**Author:** ![damlub](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/damlub/32/4309_2.png) [@damlub](https://forums.suse.com/u/damlub)\
**Post date:** [February 27, 2020, 7:56am UTC](https://forums.suse.com/t/communication-between-containers-in-the-same-pod/16690/2 "2020-02-27T07:56:59Z")

</div>

Did not try myself, but what if you `telnet localhost 80`? Containers in a Pod share their networking. See [https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/#networking](https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/#networking)

---

<div class="post-metadata">

**Author:** ![protrafree](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/protrafree/32/5078_2.png) [@protrafree](https://forums.suse.com/u/protrafree)\
**Post date:** [March 1, 2020, 1:14am UTC](https://forums.suse.com/t/communication-between-containers-in-the-same-pod/16690/3 "2020-03-01T01:14:00Z")

</div>

yep i’ve tried it before, it return

> connection closed by foreign host
