Skip to content

Saving the container with bespoke images doesn't work #1

@hyanwong

Description

@hyanwong

According to the instructions, after running add_bespoke_images.py, which copies thumbnail images into static/FinalOutputs/img/1/xxx, I should be able to do

docker commit --change="CMD /sbin/my_init" running_onezoom onezoom/oztree-bespoke-images-with-iucn

to save a docker image with these thumbnails in the right dir. However, when I do this, and re-run the new image with docker run -v -p 8080:80 onezoom/oztree-bespoke-images-with-iucn all the images in static/FinalOutputs/img are gone. You can verify this by creating a directory by hand within the docker image in e.g. static/FinalOutputs/ then running the docker commit command. When the committed container is restarted, it won't have the hand-created directory.

I'm sure I'm misunderstanding how docker commit works here. I wonder if @lentinj has any clue what I should be doing to persist a user's local changes in a new docker container in an easy way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions