After you pull the image then it's just execute th...
# fleet
j
After you pull the image then it's just execute the image
e
mysql="could not connect to db: dial tcp 127.0.0.1:3306: connect: connection refused, sleeping 0s"
s
@emmanuelbabalola, welcome! Have you had a chance to take a look at the deployment documentation and have you confirmed that your mysql configuration? Please do keep the channel posted on your progress and folks will try to help out as best they can!
e
@Sarah Gillespie Thank you for your reply. I tried looking into the deployment documentation but was not clear. Using the binary deployment. i know i can add the database using the fleet serve command with the link to redis and the database. How do i link the database and redis using the pulled docker image ?
s
Have you tried setting all the CLI flags when you start the server inside the container?
r
@Sarah Gillespie How should the CLI flags be passed? is there an example?
s
@Remington Winters is this what you are looking for?
r
I got that far, but im not particularly well versed in docker. Is there a way to pass these flags to the docker run command? or should i shell into the container to run it directly?
@Sarah Gillespie the issue we are tryingt o solve for is that we are trying to run the docker container but using a remote database. We can run the binaries directly, but wanted to utilize docker and are having issues with getting the flags configuried
j
@Sarah Gillespie I am facing a similiar issue, how do we pass in the config file into the container to use?
s
Quick question: have you run the
fleet prepare db
command prior to fleet serve? Also this blog post may be helpful for an example of a Fleet deployment that walks through some Docker specifics in more detail.