Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Start docker container if it already exists. Fix #199 #224

Merged
merged 1 commit into from
May 10, 2016
Merged

Start docker container if it already exists. Fix #199 #224

merged 1 commit into from
May 10, 2016

Conversation

a1exsh
Copy link
Contributor

@a1exsh a1exsh commented May 4, 2016

This is a workaround for an issue with startup sequence when we
have external volumes to mount. In case of EC2 instance restart
the Docker daemon will start prior to taupage-init and will
immediately try to start the container it was running prior to
the restart. This will fail because the volumes are not there yet,
they are mounted as part of taupage-init script, in 10-prepare-disks.py.

Starting the container explicitly "fixes" the problem because at that
point all required initialization steps are completed.

This is a workaround for an issue with startup sequence when we
have external volumes to mount.  In case of EC2 instance restart
the Docker daemon will start prior to taupage-init and will
immediately try to start the container it was running prior to
the restart.  This will fail because the volumes are not there yet,
they are mounted as part of taupage-init script, in 10-prepare-disks.py.

Starting the container explicitly "fixes" the problem because at that
point all required initialization steps are completed.
@femueller
Copy link
Contributor

Looks good to me 👍

@femueller femueller merged commit 6953d3a into zalando-stups:master May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants