Skip to content

docker insert will overwrite directories in image #1965

@jdnier

Description

@jdnier

I found that docker insert will replace directories in the image. For example, running

% docker insert b6be9bf172a2 http://localhost:8000/myfile.txt /home

will replace /home in the image with myfile.txt. I naively assumed cp behavior, where the file would end up inside /home, not replace it. Now I know. But it might be better to prevent this kind of destruction. (I can imagine what would have happened if I had typed / instead of /home.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions