• [6.8.3] Multiple Docker containers from one image. Old images not deleted


    Ademar
    • Annoyance

    I'm running two containers based on the same image. This setup breaks the automatic removal of old, unused Docker images. This is what happened when I tried updating:

     

    1. Have both containers running.
    2. Go to Docker tab, select "apply update" on one of the containers.
    3. When the updater has run the command to start the container again, it tries removing the old image. It says "Removing orphan image <image id>", "Error: Image can not be deleted, in use by other container(s)"
      (This is good, we don't want to delete images that are in use).
    4. After updating the second container, the updater doesn't try to delete the old image.
      (The old image is no longer in use at this point, so the updater should ideally attempt to remove it).

     

    This is just a minor annoyance, removing the old image in command line works fine.
    (I didn't include any diagnostics, because I really didn't think it would be necessary for debugging. This kind of setup is probably very rare.)




    User Feedback

    Recommended Comments

    Update: When both containers are stopped, updating the first container removes the old image. As long as you update both containers at that time, there is no issue.

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.