Kitematic: Feature request - Container linking

Created on 15 Mar 2015  路  15Comments  路  Source: docker/kitematic

Hi, newbie question here, but I am not seeing anything in the settings to be able to link two containers trough the UI ?

Most helpful comment

For me, i needed to link my Wordpress container to my sql container, i did this in the end by adding some environment variables which i obtained from the settings area within the sql container.
screen shot 2015-11-27 at 15 17 29

All 15 comments

@runseb, you can currently do container linking through the use of environment variables.

Screenshot attached.
env

is full linking available or its just like connecting from host? If its first option can you post some more details or tutorial (even one more screen ;)) ? Eventualy is that functionality on some roadmap?

@mchiang0610 ?

The linking functionality needs some more work. It's a common use-case to link containers, and a vague reference to ENV variables is not that helpful to be honest. The user interface SHOULD clearly indicate how to link containers intuitively, and the documentation is really lacking fundamental information about this subject.

Yea I think this should be re-opened because if you're downloading an official image, lets say an app that requires a database, the app container isn't going to know about the database container. Linking containers is what the container publisher is expecting you to do so environment variables do not help you in this case.

@gkawka Not yet. At the moment you have to use environment variables.

There is a pull request for container linking https://github.com/kitematic/kitematic/pull/479.

This is actually a duplicate of issue 14. Can we move discussion there? https://github.com/kitematic/kitematic/issues/14

Sorry for the confusion on my part. :(

I'd really appreciate some explanation regarding linking containers through the use of environment variables in the meantime. I can't find any solid information on this aspect.

Would also appreciate any help on linking containers using environment variables. Anything published by now?

+1... how do you use env variable for linking?

Yup, would be nice to know what the ENV VAR mechanism is.

For me, i needed to link my Wordpress container to my sql container, i did this in the end by adding some environment variables which i obtained from the settings area within the sql container.
screen shot 2015-11-27 at 15 17 29

This could be solved via the networking feature discussed here:
https://github.com/docker/kitematic/issues/1249

In the meantime you can do the linking in a docker compose yml file and fire it up via the kitematic Docker cli.

+1
It's clearly missing!
A management of the "links", and a management of "composes"

Here is an example of the Synology Docker:
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noahgift picture noahgift  路  3Comments

rbq picture rbq  路  4Comments

Ashish0410verma picture Ashish0410verma  路  3Comments

natery2000 picture natery2000  路  3Comments

EugeneKrapivin picture EugeneKrapivin  路  4Comments