package mounttree
import "github.com/dotcloud/docker/internal/mounttree"
Index ¶
Functions ¶
func SwitchRoot ¶
SwitchRoot changes path to be the root of the mount tree and changes the current working directory to the new root.
This function bind-mounts onto path; it is the caller's responsibility to set the desired propagation mode of path's parent mount beforehand to prevent unwanted propagation into different mount namespaces.
Source Files ¶
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 4 hours ago –
Tools for package owners.