On Friday, April 17, 2015 at 2:16:24 PM UTC+3, Gijs wrote:
This seems similar to your issue, so maybe supervisor can help you.
http://stackoverflow.com/questions/23692470/why-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services
On Fri, Apr 17, 2015 at 1:06 PM Guianu Leon <[email protected]
<javascript:>> wrote:
--This seems similar to your issue, so maybe supervisor can help you.
http://stackoverflow.com/questions/23692470/why-cant-i-use-docker-cmd-multiple-times-to-run-multiple-services
On Fri, Apr 17, 2015 at 1:06 PM Guianu Leon <[email protected]
<javascript:>> wrote:
Yes it seems you are right, but if I use RUN instead of CMD to start the
Redis server it still doesn't work and it will also output the server in
the shell which is something I don't want. I want it to be in the
background for my app to use it.
On Fri, Apr 17, 2015 at 2:01 PM, Gijs <[email protected] <javascript:>>
wrote:
Redis server it still doesn't work and it will also output the server in
the shell which is something I don't want. I want it to be in the
background for my app to use it.
On Fri, Apr 17, 2015 at 2:01 PM, Gijs <[email protected] <javascript:>>
wrote:
Unless something has changed since I last experimented with Docker
(which could be the case, it's been a year), you can't have multiple CMD
statements in your Dockerfile. You'll either need to have a separate
container running redis or start it as a daemonized in the same CMD you
start your Go application.
Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/golang-nuts/WXHWRexuLLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected] <javascript:>.
For more options, visit https://groups.google.com/d/optout.
(which could be the case, it's been a year), you can't have multiple CMD
statements in your Dockerfile. You'll either need to have a separate
container running redis or start it as a daemonized in the same CMD you
start your Go application.
On Friday, April 17, 2015 at 10:18:43 AM UTC+2, Rayland wrote:
My Dockerfile looks like this:
FROM golang:onbuild
RUN go get [...]
RUN apt-get update && apt-get install -y redis-server
CMD redis-server
CMD go run main.go
My program needs Redis server listening on the default port 6379 and I
get connection refused.
--
You received this message because you are subscribed to a topic in theMy Dockerfile looks like this:
FROM golang:onbuild
RUN go get [...]
RUN apt-get update && apt-get install -y redis-server
CMD redis-server
CMD go run main.go
My program needs Redis server listening on the default port 6379 and I
get connection refused.
--
Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/golang-nuts/WXHWRexuLLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected] <javascript:>.
For more options, visit https://groups.google.com/d/optout.
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 [email protected].
For more options, visit https://groups.google.com/d/optout.