-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
docker-compose up returning service needs to be built issue #1719
Comments
It seems like there are a few things going on here. The container naming problem was fixed by #1642 and will be in 1.4.0.
I don't see The aufs driver issue may have been caused by one of the earlier problems. I would start by removing any old containers that match |
I did not have --no-build as a part of the command and also there are no old containers. I tried using --no-build now and got the exact same error. |
Which version of docker-compose are you using? |
Wondering if there's a length restriction to container-names? that container-name is 314 chars long |
|
Thanks for that command. That worked! I didn't know about the -a flag so I didn't see those containers. I just ran docker ps and didn't see anything. Thanks again. |
Great! I'm still not sure about the original cause of the |
Ok cool. If I see that again, I'll try and reproduce it and give you guys more info. |
I can confirm, I had the same problem. Removing all docker containers fixed the issue, but there seems to be something going on to initially cause the issue. |
For what it's worth, I am/was having same problem. I was doing
when I had a container built on that image. It successfully deletes the image but the container is still there. so if I do
then the containers gone, the image is gone, and the docker-compose up works |
Right, I see - if you remove a service's image but leave the containers around, Perhaps we shouldn't be skipping the build step when recreating. |
Same problem here. |
Same problem! I removed all images, and stopped all containes! When i run docker-compose i got same error! |
As long as you don't If you really want to force clean everything, removing all containers (not just stopping them) would be a good idea, and would also prevent this issue. May I ask why you're force removing all images? |
@asheshambasta I don't understand - that's not a |
@aanand thanks for pointing that out, removing it from here. It was indeed the wrong issue. |
I can confirm that I have also had this error. Removing all the images and containers seemed to work for me. |
Same here:
|
+1 |
I think this issue is now a duplicate of #1679. Closing as duplicate. If you feel it is different in some way, please comment. |
I'm trying to compose a multi container web application by running the command
docker-compose up -d
. I keep seeing the following error:I'm unsure how to resolve this issue as nothing that I've tried seems to work. Here is my docker-compose.yml file:
On running docker-compose up --no-recreate, I get the following output:
The text was updated successfully, but these errors were encountered: