ssh_docker_cp

Copy files to and from Docker containers with path allowlisting.

6|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-docker-cp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssh_docker_cp
Source: https://github.com/Nightreaver/python-ssh-mcp/tree/main/skills/ssh-docker-cp
Command: npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-docker-cp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages the transfer of files to and from running containers, simplifying file operations within Docker environments.

Core Features & Use Cases

  • Container File Transfer: Copy files to or from a container's filesystem with ease.
  • Path Allowlisting: Ensures file paths comply with security policies.
  • Use Case: Quickly transfer a log file from a container or deploy a new configuration file without entering the container's environment.

Quick Start

Transfer the file 'docker-cpu-log.txt' from container 'my-container' to the host's home directory.

Frequently Asked Questions about ssh_docker_cp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I transfer files to and from a running Docker container?

To transfer files to and from a running Docker container, you can use Docker cp operations. This approach copies data between the host and container namespaces without requiring you to enter the container's environment.

Can I deploy a configuration file to a container without entering its environment?

Yes, you can deploy configuration files directly to a container's filesystem without entering the environment. This is achieved through secure, Docker-native file transfer operations that copy data between host and container namespaces.

What is the best way to copy a log file out of a container securely?

The best way to copy a log file out of a container securely is using Docker-native file management. This enables controlled operations that respect allowed file paths and destination directories during the transfer.

Does Docker cp support path allowlisting for secure file transfers?

Yes, Docker cp file transfers support path allowlisting to ensure file paths comply with security policies. This mechanism enforces controlled operations by respecting allowed file paths and destination directories.

Why use Docker cp instead of standard cp commands inside a container?

Use Docker cp instead of standard cp commands to manage files securely without entering the container's environment. It applies Docker-native file management to copy data across container namespaces while respecting path allowlists.

Are there limitations when copying files to container destination directories?

Yes, limitations apply when copying files to container destination directories. The file transfer operation enforces path allowlisting, ensuring all source and destination paths strictly comply with predefined security policies.