Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supervisor and fig. #157

Closed
bradleyg opened this issue Mar 14, 2014 · 3 comments
Closed

Supervisor and fig. #157

bradleyg opened this issue Mar 14, 2014 · 3 comments

Comments

@bradleyg
Copy link

I'm attempting to keep my fig processes up using supervisor. If one of my docker processes crashes I would like to restart it. Currently fig doesn't restart it, but it doesn't crash either.

If for example fig up web crashes, it will just sit there showing the exception.

Is it possible to make fig crash too? Allowing supervisor to restart it?

@aanand
Copy link

aanand commented Mar 20, 2014

Yeah, fig up should exit when any single container exits, we just haven't gotten round to it - see #1 :)

@bradleyg
Copy link
Author

Ha, ok. Missed that #1!

@icy
Copy link

icy commented Jun 29, 2015

If the master docker has been restarted, docker-compose will be unable to connect to docker daemon, every container exits and docker-compose keeps running without restarting its containers

Both verion 1.2.x and 1.3.1 have the same behavior.

wp_1 | 2015-06-29 0Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/compose/cli/multiplexer.py", line 41, in _enqueue_output
    for item in generator:
  File "/usr/local/lib/python2.7/dist-packages/compose/cli/log_printer.py", line 62, in _make_log_generator
    exit_code = container.wait()
  File "/usr/local/lib/python2.7/dist-packages/compose/container.py", line 155, in wait
    return self.client.wait(self.id)
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 15, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 1136, in wait
    res = self._post(url, timeout=timeout)
  File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 103, in _post
    return self.post(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 508, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send
    raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(2, 'No such file or directory

xulike666 pushed a commit to xulike666/compose that referenced this issue Jan 19, 2017
let user to specify the shim name or path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants