-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linked containers: can´t access target container #1611
Comments
The containers use internal ip addresses, so you'd need to also use that. |
Thanks for a quick reply. Yes, my app is using the alias added when I linked the containers:
My app is using |
Can you include logs from a deploy after running |
Deleted previous comment since I forgot to remove API keys :-/ now replaced with [removed] ADMIN EDIT: output replaced with https://gist.github.com/michaelshobbs/d5339b8d20451161bff0 |
@busla it's almost always better to use https://gist.github.com for this sort of lengthy debug info. This also looks incomplete. Can you use gist to post the full output? |
@michaelshobbs thanks for the tip 👍 will do from now on. Here is the gist: |
@josegonzalez i see where the deployed container is linked. what were you looking for in the trace output? https://gist.github.com/busla/bbba5f39f65792e07d33#file-gistfile1-txt-L3660 |
@busla what interface is that container process listening on? |
Any other way that I can check which interface the container uses? |
Run |
can´t |
Can you run that command outside of the container? |
yes.
|
Does this help? |
When I do
Should that value be |
Maybe. How did you install dokku? On what sort of host? |
Ubuntu 12.04 (Linode). |
We absolutely do not support 12.04 Ubuntu. You need to use Ubuntu 14.04, and you may also be having issues with the kernel that is provided by linode. Please use 14.04 and see if you can replicate the issue. |
oops, my bad. I´m on 14.04 and I installed the new kernel properly. |
This issue happens when I restart my VPS. All custom Docker containers also disappear so I guess it has something to do with running non-dokku containers on a Dokku install. |
Dokku only restarts those containers, and runs |
We should now be handling this properly. On instance reboot, we only start formerly running containers that are hosted by dokku. We don't currently do anything about any other containers, so whatever docker does there is what docker does. Linked containers should start up again, and we won't clean up stopped containers until the following deploy (the start of which triggers a |
This is my situation (see system output at the bottom):
I´ve got two containers that are linked with docker-options.
Container1 is my app that needs to post data to an API in Container2 exposed on port 8080. Expected env variables are fine on both containers so the linking seems to work.
On the other hand, the node app in Container1 times out when trying to send data to Container2 through port 8080. When I enter Container1 and try to ping Container2 I get no response. Note that posting to Container2´s port 8080 outside of my container works properly. Accessing Container1 outside Docker also works fine. I´m guessing it´s a networking issue between the containers.
Any ideas?
Containers:
uname -a
docker version
docker -D info
dokku version
0.4.0
dokku plugin
The text was updated successfully, but these errors were encountered: