Repository navigation
Closed
Description
When I run fig up I get the following error. I installed fig via pip.
Traceback (most recent call last):
File "/usr/local/bin/fig", line 9, in <module>
load_entry_point('fig==0.2.2', 'console_scripts', 'fig')()
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/cli/main.py", line 39, in main
command.sys_dispatch()
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/cli/docopt_command.py", line 21, in sys_dispatch
self.dispatch(sys.argv[1:], None)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/cli/command.py", line 26, in dispatch
super(Command, self).dispatch(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/cli/docopt_command.py", line 24, in dispatch
self.perform_command(*self.parse(argv, global_options))
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/cli/docopt_command.py", line 27, in perform_command
handler(command_options)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/cli/main.py", line 287, in up
(old, new) = self.project.recreate_containers(service_names=options['SERVICE'])
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/project.py", line 107, in recreate_containers
(s_old, s_new) = service.recreate_containers()
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/service.py", line 144, in recreate_containers
containers = self.containers(stopped=True)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/service.py", line 59, in containers
for container in self.client.containers(all=stopped):
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/packages/docker/client.py", line 399, in containers
res = self._result(self._get(u, params=params), True)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fig/packages/docker/client.py", line 98, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 395, in get
return self.request('GET', url, **kwargs)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 349, in request
prep = self.prepare_request(req)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 287, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py", line 287, in prepare
self.prepare_url(url, params)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py", line 338, in prepare_url
"Perhaps you meant http://{0}?".format(url))
requests.exceptions.MissingSchema: Invalid URL u'localhost/v1.6/containers/json': No schema supplied. Perhaps you meant http://localhost/v1.6/containers/json?
Metadata
Metadata
Assignees
Labels
No labels
Activity
aanand commentedon Feb 27, 2014
What's your
DOCKER_HOST? Are you using docker-osx, boot2docker or something else?schickling commentedon Feb 27, 2014
boot2docker
aanand commentedon Feb 27, 2014
Ah - boot2docker's not quite there yet with Fig-compatibility (we're waiting on boot2docker/boot2docker#198). For now, Fig needs docker-osx in order to mount volumes.
Your specific problem is most probably caused by
DOCKER_HOSTnot being a full URL with schema and port - this is a known issue with Fig. We need to implement the same logic as the official client (default schema of TCP, default port of 4243).Until that's done,
DOCKER_HOSTneeds to be of the form:tcp://localhost:4243.schickling commentedon Feb 27, 2014
I see, thanks anyway.
semperos commentedon Feb 28, 2014
Using docker-osx, installed fig via pip, I get the following when running
fig up:Any thoughts?
jijojv commentedon Mar 1, 2014
Any ideas why this error happens. Thanks
bfirsh commentedon Mar 2, 2014
@jijojv give this binary a try: https://s3.amazonaws.com/static.orchardup.com/binaries/fig/Darwin/x86_64/fig-0.2.2
bfirsh commentedon Mar 3, 2014
@semperos Any chance you could open up a new issue with that traceback and your
fig.yml? That looks like a different issue.bfirsh commentedon Mar 3, 2014
Moved to a more descriptive #126. Thanks @schickling!
Merge pull request docker#115 from docker/opts