-
Notifications
You must be signed in to change notification settings - Fork 11
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
Network Connectivity: How to start the container correctly? #4
Comments
seems to be realated to #1 |
Although, it seems that it is related to #1, I decided to reopen this issue (I have not the right permissions to reopen the other one). I debugged it a bit and it seems like the daemon is running, but does not respond. If I connect to the container and start another server (e.g., The daemon itself is running:
But it seems to have troubles on startup:
|
@hannesmuehleisen I switched to another docker-image (https://hub.docker.com/r/aquila/monetdb/~/dockerfile/), which works really nice (even without supervisord). The Dockerfile looks really clean, maybe you can use some parts of it. |
Hi I am not involved in the Docker image. @kutsurak do you know whats going on here? |
Hello @inkrement, The link you provided definitely looks interesting, and we really need to give some attention to docker. @PedroTadim did some work recently on this. I will talk with him and get back to you soon. |
Fixing this now. I think the problem is that the CentOS image that we are based from got updated, since the previous compilation of MonetDB Docker. I will put everything back on ASAP. |
Found the problem. On MonetDB Jun2016 release, the default listening behavior of the monetdbd ('listenaddr' property) changed to the localhost only. That's why you couldn't connect from the outside of the container. I have just changed the DockerFile in order to the monetdb daemon to listen from any host. You can try by using the latest version of the image and close the issue. |
@PedroTadim have you tested it? I pulled the latest image and started it, but I am not able to reach the database (container is running). I run it like this:
When I start it interactively (without the
I tried the following commands to reach it (each should work; docker container is running):
|
I got the problem. You are mounting the /var/monetdb5/dbfarm directory, which means you are overriding the merovingian_properties file, setting MonetDB's default listenaddr to the localhost (inside the container only). Maybe we need to rebuild the DockerFile. |
Strange.. I found this in the documentation
... so I thought that this "overlays" means to add files, but not to mask them completely (somehow like the onion file-system works). But I guess you are right... Are you sure that it will work if I overwrite an initialized database? Or do I have to copy all the content before on the host-volume? Update: I tried it and changing the path to link just the db folder does work, but without an initial db. Although, the server is running and it is possible to connect, the initial database "db" is not available (cause all the data in this folder is empty). So I tried to start another copy of the image and copied the content of the db folder using |
Hi, I want to connect to the
monet-container
[172.17.0.7] from another one (lets call itRcont
[172.17.0.2]) . Both are in the same network (bridge) docker0.If I start
monet-container
it like this:Then I cannot reach the datavase from the host using it's IP or the hosts IP (both commands return something like "connection refused"):
And I am also not able to reach it from the other container
Rcont
(neither on the host' s IP nor the `monet-container's IP).But when I start it like this:
it is not possible to reach the database using the containers IP (
telnet 172.17.0.7 50000
from host), buttelnet localhost 50000
works on the docker-host (as expected, because I bind the IP).So I am able to connect from docker-host to the container, but within the container it is a different story. It seems like I am able to reach the database somehow (I get a no route instead of connection refused), but I am not able to connect to it:
Although, wget indicates some sort of connection, a minimal example in R (on
Rcont
) fails:with the error:
The text was updated successfully, but these errors were encountered: