-
Notifications
You must be signed in to change notification settings - Fork 673
Support weave script running against non-standard DOCKER_HOST #1689
Conversation
Update: It doesn't work with the plugin, as the plugin is hard-coded to |
Does still work with |
195fcac
to
1401100
Compare
1401100
to
dc2d794
Compare
Needs a rebase - another |
I was going to re-raise weaveworks-experiments/docker-plugin#47 in this repo as we've merged the code bases, but actually that doesn't make sense - the commit from that PR can be added to this one. |
@@ -1489,7 +1507,7 @@ launch_router() { | |||
--dns-effective-listen-address $DOCKER_BRIDGE_IP \ | |||
${NETHOST_OPT:+$DNS_ROUTER_OPTS} $NO_DNS_OPT \ | |||
--http-addr $HTTP_IP:$HTTP_PORT \ | |||
--docker-api "unix:///var/run/docker.sock" "$@") | |||
"$@") |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
7860eaa
to
3081a73
Compare
Looking good. Can we smoke test this? The vagrantfiles already cause the docker daemon in the test VMs to listen on TCP as well as the standard docker socket; presumably we can extend them to include a non-standard unix socket as well? |
Sure, but no guarantees it's actually using the non-standard socket. Edit: Will add a test, though... |
67d298e
to
9f6d892
Compare
9f6d892
to
da75848
Compare
This needs a "rebuild-with-ssh" on circle to debug why test 690 is hanging. Waiting for weaveworks/build-tools#10 to be deployed to fix a bug, for "rebuild-with-ssh" to work. |
da75848
to
50b8d1e
Compare
50b8d1e
to
4fc22a2
Compare
if val := os.Getenv("DOCKER_HOST"); val != "" { | ||
dockerSocket = val | ||
} | ||
dockerClient, err := docker.NewClient(dockerSocket) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
07a790a
to
7c2b210
Compare
@@ -31,7 +31,7 @@ check | |||
# Check we can use weave env/config with unix -Hs specified | |||
weave_on $HOST1 stop | |||
weave_on $HOST1 launch-proxy -H unix:///var/run/weave/weave.sock | |||
assert_raises "run_on $HOST1 'eval \$(weave env) ; docker $CMD'" | |||
assert_raises "run_on $HOST1 'docker \$(weave config) $CMD'" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
7c2b210
to
b6c420b
Compare
b6c420b
to
6515fe4
Compare
cd7f937
to
fb74d0a
Compare
fb74d0a
to
125e9ce
Compare
Means we need to rebuild the gce images (also small improvement re tmpdir)
- proxy copies permissions from $DOCKER_HOST socket if available, so in this case it was not accessible because we were booting via a TCP socket
125e9ce
to
d8cfbc4
Compare
Support weave script running against non-standard DOCKER_HOST.
First part of fixing #1586.
Need to check it works with the plugin, and
DOCKER_HOST=tcp://*
as well. Any docker invocations I've missed, that needDOCKER_HOST
passed in?