Table of Contents

Docker - CP command (COPY|ADD)

About

The copy command copies files/folders between a container and the local filesystem and vice-versa.

Example

docker cp foo.txt mycontainer:/foo.txt
docker cp mycontainer:/foo.txt foo.txt