-
Notifications
You must be signed in to change notification settings - Fork 618
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
Task won't start with volumesFrom defined, agent doesn't say why #756
Comments
@JunkMyFunk Looks like there is a conflict in your task definition in terms of the dependency: What's the reason you want to use Thanks, |
Yup, you're right - well spotted. Not sure why So trying this configuration locally with docker produces Thanks though @richardpen |
I remember why I needed |
@JunkMyFunk Thanks for pointing this out, we should improve the error message in the agent to be more descriptive. I'll keep this issue open until it is fixed, for the Thanks, |
Hi @richardpen @JunkMyFunk , since we last updated this issues, we have released Task networking for ECS, which should provide a better model for two containers in a task to communicate with each other (over |
I have a basic task defined with 2 containers - an nginx container
site
linked to a php-fpm containersite-php
. The php-fpm container needs to access the website files on the nginx container so I'm trying to usevolumesFrom
to do this.Task definition is:
The Dockerfile for
site
has the lineVOLUME /var/www/html
which I'm expecting thesite-php
container to mount. The exact same task definition with thevolumesFrom
section removed fromsite-php
starts up fine (although the website obviously doesn't work I can still get a response from nginx) and the docker-compose equivalent of this run locally works too.When I run the task with
volumesFrom
defined this way it stops immediately, the agent logs the following but no containers are started and there're no other logs available to work out what the problem might be. The AWS interface just saysStopped reason: Essential container in task exited
with no further information.Is there something obvious wrong with this task definition? If not, how can I get better error messages to work out what the problem is?
The text was updated successfully, but these errors were encountered: