Skip to content

Add support for mounting individual files from the host #2671

@daniel-garcia

Description

@daniel-garcia

Add support for mounting individual files from the host

The core ability was already there in the lxc template as evident from mounting things like resolv.conf, so no changes there. This just touches up the bit of container setup that makes sure mount points exist inside the container to make a file for files and a directory for directories.

This involves docker checking the host filesystem to see whether the mount parameter refers to a file or directory, and so has the sideeffect that missing mount locations on the host are now grounds for an error from docker. (Previously this went unremarked upon until lxc died, and the error message ended up in the container logs instead of being reported to the terminal that ran docker.)

[ This is an issue to track multiple attempts at implementing this issue, #1757 #2301 ]

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