FAQ
Why would I use EXPOSE when Redis is inside the same container as my
program? I tried your way just to check and it doesn't work.
On Friday, April 17, 2015 at 11:43:22 AM UTC+3, rjeczalik wrote:

On 17 April 2015 at 10:18, Rayland <guian...@gmail.com <javascript:>>
wrote:
My program needs Redis server listening on the default port 6379 and I
get connection refused.

It's more about Docker than Go, but add "EXPOSE 6379" to your Dockerfile
and use -P flag when running the container.

https://docs.docker.com/reference/builder/#expose
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 18 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedApr 17, '15 at 8:18a
activeApr 17, '15 at 10:40p
posts18
users7
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase