Skip to content

Missing support for mount --bind of nondirectory files #13498

Description

@lyphyser

Description

mount --bind fails unless the source and destination are directories.

In Linux, any non-directory filesystem node can be bind mounted on any non-directory target (in addition to bind mounting directories on directories).

Steps to reproduce

echo foo > foo
echo bar > bar
mount --bind foo bar

runsc version

docker version (if using docker)

uname

No response

kubectl (if using Kubernetes)

repo state (if built from source)

No response

runsc debug logs (if available)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Fields

    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