Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.2 KB

File metadata and controls

32 lines (21 loc) · 1.2 KB

Files and volumes

Copying files

Files can be copied into the container before startup, or can be copied from the container after the container has started.

!!! note This is the recommended approach for portability cross-docker environments.

Copying to a container before startup

Copying files using MountableFile inside_block:copyToContainer

Using Transferable, file content will be placed in the specified location.

Copying files using Transferable inside_block:transferableFile

Setting file mode is also possible.

Copying files using Transferable with file mode inside_block:transferableWithFileMode

Copying a file from a running container

Copying files from a container inside_block:copyFileFromContainer