Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCZm1-0003vO-Dv for pgsql-pkg-docker@arkaria.postgresql.org; Wed, 30 Jul 2014 19:42:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCZm0-0004tx-Sr for pgsql-pkg-docker@arkaria.postgresql.org; Wed, 30 Jul 2014 19:42:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCZlz-0004s5-P5 for pgsql-pkg-docker@postgresql.org; Wed, 30 Jul 2014 19:42:51 +0000 Received: from mail-yh0-x22b.google.com ([2607:f8b0:4002:c01::22b]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XCZlv-0002iL-Ta for pgsql-pkg-docker@postgresql.org; Wed, 30 Jul 2014 19:42:50 +0000 Received: by mail-yh0-f43.google.com with SMTP id 29so1017868yhl.16 for ; Wed, 30 Jul 2014 12:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1l+GKxdi+hQpDpZggUIliQUDZTkdMmvH12kxQx81d+o=; b=ytFrVh7lhczHK9dZEwcbKjcq6exlBS3g9V2cTS4kvTROfycMhoeHR/zPaalO18cmtJ q2toMN1s5UF9sWPn4nJf5ok8GEuosDMMx1YhJtf2l1GJQnSiJcXfgI8CEJn06UG6xyiV nUGOmyfNPVJavnIXK4QjrEMfCBHZsSzP1AtVR9KoSAOsW8FR5N+lqhVzctlbwEbdXq6d ivcnIfJUnxy5M0CHQ/iF2ecJ6JnK1BtMqeTCHV1drziq9+dl4zxEpv2jvUCDDImEGh/w FiIXN/kuj6NGJQiy20cjEsYUN7TuljaCtuSoRS6lRnG/ptjvaEMvVE3Hw157ifJl9gfe az6w== MIME-Version: 1.0 X-Received: by 10.236.199.45 with SMTP id w33mr9389372yhn.122.1406749365100; Wed, 30 Jul 2014 12:42:45 -0700 (PDT) Received: by 10.170.120.82 with HTTP; Wed, 30 Jul 2014 12:42:45 -0700 (PDT) Received: by 10.170.120.82 with HTTP; Wed, 30 Jul 2014 12:42:45 -0700 (PDT) In-Reply-To: <53D94A0E.5070103@agliodbs.com> References: <53D7E53A.5080505@agliodbs.com> <53D9319A.7080708@agliodbs.com> <53D94A0E.5070103@agliodbs.com> Date: Wed, 30 Jul 2014 13:42:45 -0600 Message-ID: Subject: Re: SSH-free PostgreSQL From: Tianon Gravi To: Josh Berkus Cc: Joe Ferguson , Postgres-Docker Mailing List Content-Type: multipart/alternative; boundary=089e0160a9ee31e58b04ff6e5cdf X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-docker Precedence: bulk Sender: pgsql-pkg-docker-owner@postgresql.org --089e0160a9ee31e58b04ff6e5cdf Content-Type: text/plain; charset=UTF-8 On 30 Jul 2014 13:40, "Josh Berkus" wrote: > > On 07/30/2014 12:34 PM, Joseph Ferguson wrote: > > On Wed, Jul 30, 2014 at 11:55 AM, Josh Berkus wrote: > >> > >> Question: how does --link work if the two dockers are on different machines? > > > > Currently it does not work at all. The local docker daemon knows > > nothing of other docker daemons. I think expanding --link or > > something similar is planned for the future. > > > > Regardless, the --link could still be emulated by setting the correct > > env vars (POSTGRES_PORT_5432_TCP_ADDR POSTGRES_PORT_5432_TCP_PORT) on > > the linked-from host and setting the proper routing and possible port > > mapping to the container on the other machine. > > Those settings aren't *enough* though. We also need to know user and > application name. Well, you're not going to get that from just --link either, so I don't see a way for those to not be specified by the user. > > -- > Josh Berkus > PostgreSQL Experts Inc. > http://pgexperts.com > > > -- > Sent via pgsql-pkg-docker mailing list (pgsql-pkg-docker@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-pkg-docker - Tianon --089e0160a9ee31e58b04ff6e5cdf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 30 Jul 2014 13:40, "Josh Berkus" <josh@agliodbs.com> wrote:
>
> On 07/30/2014 12:34 PM, Joseph Ferguson wrote:
> > On Wed, Jul 30, 2014 at 11:55 AM, Josh Berkus <josh@agliodbs.com> wrote:
> >>
> >> Question: how does --link work if the two dockers are on diff= erent machines?
> >
> > Currently it does not work at all. The local docker daemon knows<= br> > > nothing of other docker daemons. =C2=A0I think expanding --link o= r
> > something similar is planned for the future.
> >
> > Regardless, the --link could still be emulated by setting the cor= rect
> > env vars (POSTGRES_PORT_5432_TCP_ADDR POSTGRES_PORT_5432_TCP_PORT= ) on
> > the linked-from host and setting the proper routing and possible = port
> > mapping to the container on the other machine.
>
> Those settings aren't *enough* though. =C2=A0We also need to know = user and
> application name.

Well, you're not going to get that from just --link eith= er, so I don't see a way for those to not be specified by the user.

>
> --
> Josh Berkus
> PostgreSQL Experts Inc.
> http://pgexperts.com
>
>
> --
> Sent via pgsql-pkg-docker mailing list (pgsql-pkg-docker@postgresql.org)
> To make changes to your subscription:
> http:/= /www.postgresql.org/mailpref/pgsql-pkg-docker

- Tianon

--089e0160a9ee31e58b04ff6e5cdf--