Skip to content
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

Building container fails after removing old image. #5465

Closed
iangneal opened this issue Dec 10, 2017 · 0 comments
Closed

Building container fails after removing old image. #5465

iangneal opened this issue Dec 10, 2017 · 0 comments

Comments

@iangneal
Copy link

I found this issue while working on a fix for issue #4337.

By running the following sequence of commands on this example repository:

git checkout tags/test2_run1
docker-compose build
docker rmi --force dctest_service1
docker-compose build
docker-compose up

Compose fails because the old image is never properly rebuilt from the old container:

WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use `docker stack deploy`.

Recreating dctest_service1_1 ... error

ERROR: for dctest_service1_1  no such image: sha256:bb41503c2e723478308998afc7df0886fac0811621b70d61b28ca36418a41bb7: No such image: sha256:bb41503c2e723478308998afc7df0886fac0811621b70d61b28ca36418a41bb7

ERROR: for service1  no such image: sha256:bb41503c2e723478308998afc7df0886fac0811621b70d61b28ca36418a41bb7: No such image: sha256:bb41503c2e723478308998afc7df0886fac0811621b70d61b28ca36418a41bb7
ERROR: Encountered errors while bringing up the project.
iangneal added a commit to Rozelette/compose that referenced this issue Dec 10, 2017
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.
iangneal added a commit to Rozelette/compose that referenced this issue Dec 10, 2017
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Signed-off-by: Ian Glen Neal <[email protected]>

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
iangneal added a commit to Rozelette/compose that referenced this issue Jan 11, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
shin- pushed a commit to shin-/compose that referenced this issue Jan 12, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request docker#5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
shin- pushed a commit that referenced this issue Jan 19, 2018
get_container_data_volumes. The ImageNotFound exception is now bubbled
up to the client, which prompts the user on the desired course of action
(rebuild or abort). Added a case to the unit test to check that
an empty existing image doesn't result in an exception.

Closed old pull request #5466 because I did a rebase and it showed over
300 commits to merge, which I thought was messy.

Signed-off-by: Ian Glen Neal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants