Skip to main content

Simple `docker cp` command mimic as a Python package

Project description


Simple docker cp command mimic as a Python package

PyPI - License PyPI PyPI - Python Version PyPI - Wheel


This package requires Python 3.6+. To install it, just do:

$ pip install simple-docker-cp


Usage of the provided command-line script docker-cp:

usage: docker-cp [-h] [--buffer-size buffer_size_in_kilobytes]
                 source_path destination_path

Copies a file from or to the container using a fixed size buffer.

positional arguments:
  source_path           Source path
  destination_path      Destination path

optional arguments:
  -h, --help            show this help message and exit
  --buffer-size buffer_size_in_kilobytes
                        Optional number of kilobytes argument to set fixed
                        size buffer. Defaults to 2048 kilobytes

Currently, it only works from a container file to a local path.


$ docker run -d --name test fedora:25 /usr/bin/sleep
$ docker-cp test:/etc/fedora-release .
$ cat fedora-release
Fedora release 25 (Twenty Five)


If one is interested in reading about the rationale for this project's development, just read docs/

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
simple_docker_cp-2019.7.2.0-py3-none-any.whl (9.0 kB) Copy SHA256 hash SHA256 Wheel py3
simple_docker_cp-2019.7.2.0.tar.gz (5.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page