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

Container does not stop #247

Open
priols opened this issue Feb 5, 2019 · 0 comments
Open

Container does not stop #247

priols opened this issue Feb 5, 2019 · 0 comments

Comments

@priols
Copy link

priols commented Feb 5, 2019

Hi,
It sometimes occurs that a container does not properly stop. When I take a look inside the container at the running processes, I can see that there is a "sleep 1" which comes from the script /tmp/init.sh.
`#!/usr/bin/env sh

set -uxe

export CONFIG="/tmp/config.sh"
while [ ! -f "$CONFIG" ]; do
echo "No config, sleeping for 1 second"
sleep 1
done

echo "Found config file"
`

The configuration file is apparently not created in /tmp and the container is indeed stopped after creating a config.sh file in /tmp. Do you have any idea how it can occur?

Linux distrib: Linux version 4.4.0-34-generic (buildd@lgw01-20) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ) #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016

Docker version 18.06.1-ce, build e68fc7a

Thanks

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

1 participant