files

package
v4.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFromHost

func CopyFromHost(src, dstRel, dstRootfs string) error

CopyFromHost should be used to copy files into the rootfs from the host fs. src is a path relative to CWD on the host, or an absolute path on the host. dstRel is a destination path inside dstRootfs. An empty dstRel "" means copy the src file to the same path in the rootfs. All symlinks encountered in the copy will be dereferenced (cp -L behavior).

func CopyFromStage

func CopyFromStage(src, dst, srcRootfs, dstRootfs string, disableIDMapping bool) error

CopyFromStage should be used to copy files into the rootfs from a previous stage. The src and dst are paths relative to the srcRootfs and dstRootfs. An empty dst "" means copy the src file to the same path in the dst rootfs. Symlinks are only dereferenced for the specified source or files that resolve directly from a specified glob pattern. Any additional links inside a directory being copied are not dereferenced. The disableIDMapping boolean should be set if this is a proot build, as the moby CopyWithTar will freeze with ID mapping enabled in this case.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL