-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Why is Docker-Compose removing one of my containers after its built? #1781
Comments
That "Removing intermediate" is unrelated to your problem, it's a normal step in the build process. What command are you running? If you're running If that's not it, could you provide more context, and maybe a pastebin of the full console log. |
Hey, thanks for the quick response. So I am running Here is the Dockerfile for the container thats being removed:
|
|
Actually, ya. The command it's running is |
Do I need a CMD in the Dockerfile? I'm not sure how the command was set to
Why is it showing that the container is being removed in this context? It wasn't actually removed as far as I could see. Am I missing something?
|
It's not removing your container, it's removing an intermediate that was used as part of the build process. This is expected |
Ah, ok. My mistake. Thanks for your help. It seems to be staying up now. |
I have a muti-container web application which I'm linking with Docker-Compose. One of the containers is an ubuntu trusty based image which installs automation tools to headlessly test the front end of the app. For some reason, this container is being killed right after its created. Is this expected? Is there a way I can keep it 'alive'? I apologize before hand if this is something obvious but I haven't found many resources online so I figured I'd ask here.
Console output:
Here is my docker-compose.yml:
The text was updated successfully, but these errors were encountered: