kitematic icon indicating copy to clipboard operation
kitematic copied to clipboard

Feature request - Container linking

Open sebgoa opened this issue 11 years ago • 15 comments

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

sebgoa avatar Mar 15 '15 21:03 sebgoa

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

Screenshot attached. env

mchiang0610 avatar Mar 16 '15 16:03 mchiang0610

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?

gkawka avatar Apr 29 '15 19:04 gkawka

@mchiang0610 ?

gkawka avatar May 03 '15 09:05 gkawka

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.

emilkje avatar May 06 '15 06:05 emilkje

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.

ianwalter avatar May 11 '15 21:05 ianwalter

@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.

mchiang0610 avatar May 12 '15 02:05 mchiang0610

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. :(

mchiang0610 avatar May 12 '15 02:05 mchiang0610

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.

arondeparon avatar Jun 17 '15 12:06 arondeparon

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

lmartins avatar Sep 10 '15 21:09 lmartins

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

roynasser avatar Nov 16 '15 16:11 roynasser

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

kitplummer avatar Nov 16 '15 17:11 kitplummer

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

benjasl-stripe avatar Nov 27 '15 15:11 benjasl-stripe

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

FrenchBen avatar Nov 30 '15 19:11 FrenchBen

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

jensoleg avatar Dec 30 '15 12:12 jensoleg

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

Here is an example of the Synology Docker: image

josedacosta avatar Jun 13 '17 15:06 josedacosta