-
Notifications
You must be signed in to change notification settings - Fork 14
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
Failure to build stack when build and run Dockerfiles are the same #66
Comments
Update: this error occurs on both Linux and Mac. |
Another update: this error appears to be from using the same Dockerfile for both the build and run images. It appears that the two generated images have the same Image ID in the docker daemon which causes some problems with the run image. I was able to successfully build by using a separate Dockerfile for the run image with a small change made to it. I believe the error comes from this line when the run image is being updated, the build image with the same tag has already been updated, and both images are gone. That's because the build image is updated then cleanup happens of all images with the same ID. |
Should users be able to use the same Dockerfile for build and run? (in my opinion, yes). If so, this is a bug we should resolve. |
@sophiewigmore a quick clarification - is this a problem from using the exact same Dockerfile, or is it also reproducible when using different Dockerfiles with identical content but different file names? |
@robdimsdale identical content but different file names still produce the buggy behaviour |
In paketo-buildpacks/dotnet-core#653, a user (@lamw) reported seeing a failure when building a Powershell-based image on Mac:
I was able to reproduce this error on my Mac, when passing in the same
stack.toml
file, and setting up a powershell Dockerfile .It appears that the run image build phase succeeds and the image is on the Docker daemon during the build, but for some reason the run image is missing from the Docker daemon when the run image update step runs.
It looks like this error does not occur when building the Tiny stack, for example on Mac
Issue
We should investigate why this is occurring and put in a fix to the
create-stack
codebase. If it's a problem with the Dockerfile used, we should make usage information clearer for users.We should also try to reproduce this failure on a linux machine and see if the same error crops up.
The text was updated successfully, but these errors were encountered: