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

Service continuously restarted #7

Closed
jcassee opened this issue Aug 15, 2017 · 7 comments
Closed

Service continuously restarted #7

jcassee opened this issue Aug 15, 2017 · 7 comments

Comments

@jcassee
Copy link

jcassee commented Aug 15, 2017

Probably using shepherd wrong, but Docker is continuously restarting the services that shepherd updates, even when the image has not changed. I am using Docker 17.06.0-ce on Ubuntu 16.04.

What am I doing wrong? Alternatively, anything I can do to help fix or debug the problem further?

Maybe related to moby/moby#34242?

@pdeveltere
Copy link

pdeveltere commented Aug 21, 2017

+1. I'm having the same problem, the containers are being recreated every SLEEP_TIME interval, even when the image has not changed.

@djmaze
Copy link
Collaborator

djmaze commented Sep 18, 2017

Can't reproduce (with 17.06.1-ce).

@jcassee It's probably the bug you mentioned. Which will be fixed in 17.09 AFAICS.

@MetalArend
Copy link

The following error shows up in the logs:

Sleeping "5m" before next update
sleep: invalid number '"5m"'

@djmaze
Copy link
Collaborator

djmaze commented Feb 21, 2018

@MetalArend That seems to be another problem. I can provoke that failure when running with --env SLEEP_TIME='"5m"'. So it looks you (mistakenly) double quoted it?

@MetalArend
Copy link

I had the following code in my docker-compose.yml file:

environment:
      - SLEEP_TIME="5m"

Removing the quotes actually solves it.

@pascalandy
Copy link

Looks like this is not an issue anymore.

@djmaze
Copy link
Collaborator

djmaze commented Nov 27, 2018

Okay, closing. Please report back in case this is still a problem.

@djmaze djmaze closed this as completed Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants