# Copying Files

> How do you copy files between the host and a container, and what are the limitations of docker cp?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-cp-command
Last updated: 2026-11-28

Difficulty: Beginner

## Question

How do you copy files between the host and a container, and what are the limitations of docker cp?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

docker cp, Container filesystem, File ownership, Tar streaming

Previous: [Pruning Volumes](https://www.internhack.in/learn/interview/docker-containers/docker-volume-prune) · Next: [Docker Commit](https://www.internhack.in/learn/interview/docker-containers/docker-commit-command) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Image History](https://www.internhack.in/learn/interview/docker-containers/docker-history-command)
- [User Namespaces](https://www.internhack.in/learn/interview/docker-containers/docker-user-namespace-remapping)
- [HEALTHCHECK](https://www.internhack.in/learn/interview/docker-containers/docker-healthcheck-instruction)
- [Tmpfs Mounts](https://www.internhack.in/learn/interview/docker-containers/docker-tmpfs-mounts)
- [Compose Scaling](https://www.internhack.in/learn/interview/docker-containers/docker-compose-scaling)
- [Docker Context](https://www.internhack.in/learn/interview/docker-containers/docker-context-management)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
