sincecutoff.com
← all changes

nerdctl cp supports tarballs

Introduced 2026-05-05 · score 0.95

HOW TO USE IT

When copying a tar archive from the host into a container, stream it to `nerdctl cp` with `-` as the source and a container directory as the destination. The container must be running.

tar -cf - <host-path> | nerdctl cp - <container>:<destination-directory>

WHY THIS HELPS

Copy files using tarballs with nerdctl.

REQUIREMENTS AND LIMITATIONS

  • Version: v2.3.0
  • nerdctl cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH (required): Copy from the local filesystem or stdin into a container. Use `-` for the tar archive on stdin; the destination must be a directory.
  • CONTAINER (required): Target container; the command is documented for a running container.
  • -L, --follow-link: Always follow symbolic links in SRC_PATH.
  • Prerequisite: nerdctl v2.3.0 or later for the release-added tarball support.
  • Prerequisite: The target container must be running. Use only with trusted, cooperating containers.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card