dnephin / dobi

A build automation tool for Docker applications
https://dnephin.github.io/dobi/
Apache License 2.0
309 stars 36 forks source link

"pull once" images break when removed #215

Closed aidan-mundy closed 2 years ago

aidan-mundy commented 2 years ago

After an image with pull: once is removed with dobi IMAGE:rm (or any invocation of the rm task, the image cannot be pulled again. This is caused by the .dobi state file showing an active image ID and a valid "last pulled" time. The image ID and "last pulled" time should be cleared if the rm task succeeds. This may also affect images with pull: <duration>, though I haven't checked.

aidan-mundy commented 2 years ago

Pull request incoming that resolves this bug