Comments (21)
Seems like it's for an old version of docker and expecting a tcp socket, while newer ones mount on /var/run/docker.sock.
from compose.
@aronasorman Shouldn't be the case. I get this on 0.7.4. Unless you mean that fig expects older versions?
from compose.
I am having the same issue with Docker 0.7.5
from compose.
I am seeing the same issue with docker 0.7.5:
Client version: 0.7.5
Go version (client): go1.2
Git commit (client): c348c04
Server version: 0.7.5
Git commit (server): c348c04
Go version (server): go1.2
Last stable version: 0.7.5
from compose.
Right, I'm pretty sure this is because we're using a websocket to attach, and the websockets library doesn't support unix://
URLs. Not entirely surprising.
We needn't really be using websockets at all, except that I'm seeing some odd extra bytes in the output when using a raw socket.
While I'm investigating, a temporary fix is to run the Docker daemon on a TCP socket instead of the standard Unix one:
docker -H 127.0.0.1:4243 -d
Fig will automatically connect to 127.0.0.1:4243
if it's open, so that should be all you need.
from compose.
I changed the DOCKER_OPS in /etc/init.d/docker, but nothing appears to have
changed.
On Mon, Jan 13, 2014 at 8:52 AM, Aanand Prasad [email protected]:
Right, I'm pretty sure this is because we're using a websocket to attach,
and the websockets library doesn't support unix:// URLs. Not entirely
surprising.We needn't really be using websockets at all, except that I'm seeing some
odd extra bytes in the output when using a raw socket.While I'm investigating, a temporary fix is to run the Docker daemon on a
TCP socket instead of the standard Unix one:docker -H 127.0.0.1:4243 -d
Fig will automatically connect to 127.0.0.1:4243 if it's open, so that
should be all you need.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-32187479
.
from compose.
If you're using the standard Docker Ubuntu package, try putting this in /etc/default/docker
:
export DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://0.0.0.0:4243"
from compose.
I still get the error.
On Mon, Jan 13, 2014 at 9:23 AM, Ben Firshman [email protected]:
If you're using the standard Docker package, try putting this in
/etc/default/docker:export DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://0.0.0.0:$DOCKER_PORT"
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-32190480
.
from compose.
Fixed in a branch, but we're waiting on a fix to docker-py to be accepted/released; if you're feeling brave, you can follow the instructions in #10 to install patched versions of both docker-py and fig.
@tekknolagi: sorry to hear it's still not working. Could you try removing the Unix socket from the config, i.e. just putting export DOCKER_OPTS="-H tcp://0.0.0.0:4243"
in /etc/default/docker
?
from compose.
from compose.
Oh dear. Right, last thing to try: run export DOCKER_URL=http://127.0.0.1:4243
in your shell before running fig
.
from compose.
Can you curl localhost:4243/version
?
from compose.
Actually let's try and debug this step by step. After setting /etc/default/docker
to:
export DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://0.0.0.0:4243"
Run restart docker
. Check ps ax | grep docker
to see if Docker is running. If it isn't, it'll say why in /var/log/upstart/docker.log
. If it is, try curl localhost:4243/version
to see if it's listening on HTTP.
from compose.
I got it working after I added DOCKER_OPTS="-H 127.0.0.1:4243" in /etc/default/docker
Fig is a great tool btw! I was looking for a Vagrant-like workflow for Docker and this fits the bill :-)
from compose.
Running that command fixed it, yes.
On Tue, Jan 14, 2014 at 11:05 AM, Frank Scholten
[email protected]:
I got it working after I changed added DOCKER_OPTS="-H 127.0.0.1:4243" in
/etc/default/dockerThis is a great tool btw! I was looking for a Vagrant-like workflow for
Docker and this fits the bill :-)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-32295807
.
from compose.
I just have to export that before running the fig client.
On Tue, Jan 14, 2014 at 12:24 PM, Maxwell Bernstein
[email protected]:
Running that command fixed it, yes.
On Tue, Jan 14, 2014 at 11:05 AM, Frank Scholten <[email protected]
wrote:
I got it working after I changed added DOCKER_OPTS="-H 127.0.0.1:4243"
in /etc/default/dockerThis is a great tool btw! I was looking for a Vagrant-like workflow for
Docker and this fits the bill :-)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-32295807
.
from compose.
How come I can't use the docker
util if I don't change the environment variable again? Is there no way for dockerd
to listen on both the socket and IP?
from compose.
I see. What about check?
from compose.
Check?
On Thu, Jan 16, 2014 at 5:43 AM, Janez Troha [email protected]:
I see. What about check?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-32469258
.
from compose.
We've released a new version that fixes this. Thanks for your help and patience, folks!
$ sudo pip install --upgrade fig
You should now be able to run docker -d
without specifying a host, as Fig works just fine against the Unix socket.
Note: if you are running it on a TCP port, Fig now looks for the DOCKER_HOST
environment variable (not DOCKER_URL
) to maintain consistency with the official Docker client, so be sure to use that.
from compose.
Wonderful! Thanks.
On Thu, Jan 16, 2014 at 10:39 AM, Aanand Prasad [email protected]:
We've released a new version that fixes this. Thanks for your help and
patience, folks!$ sudo pip install --upgrade fig
You should now be able to run docker -d without specifying a host, as Fig
works just fine against the Unix socket.Note: if you are running it on a TCP port, Fig now looks for the
DOCKER_HOST environment variable (not DOCKER_URL) to maintain consistency
with the official Docker client, so be sure to use that.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-32503556
.
from compose.
Related Issues (20)
- [BUG] Inconsistent behavior with `--context` (and likely other shared Docker CLI) flags
- How to expose a Docker container port to one specific Docker network only, when a container is connected to multiple networks? HOT 1
- panic: interface conversion: interface {} is map[string]interface {}, not string HOT 4
- [BUG] Variable interpolation is not working except for .env HOT 2
- Release with all vendor dependencies HOT 5
- [BUG] panic on empty environment variable HOT 1
- [BUG] cli panic on bad env_file properties HOT 1
- [BUG] Crash when using env_file path within include HOT 1
- [BUG] docker compose up --watch with sync+restart does not show logs after restart HOT 1
- Flag to indicate a service completes for `docker compose up --wait`
- [BUG] Keypresses are swallowed when piping `docker compose exec` output to `less` HOT 2
- Allow the env_file property in the include attribute to optionally require env files HOT 4
- [BUG] Regression: services security_opt array items[0,1] must be unique
- 0KRunning with-gitlab-runner HOT 1
- [BUG] Scale down sorts by obsolete status but stops/removes containers in the reverse order
- Start containers as soon as they are ready HOT 3
- [BUG] docker-compose ps --format json HOT 1
- [BUG] `config --variables` lists broken variable names
- [BUG] Docker Compose Autocomplete does not work for filename compose.yml instead of docker-compose.yml HOT 1
- [BUG] YAML top-level name linter does not accept env variables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose.