Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

# Dockerize

Dockerize will pack up your dynamically linked ELF binaries and all
their dependencies and turn them into a Docker image.

Some example images built with this tool are available from:


## Synopsis

usage: dockerize [-h] [--tag TAG] [--cmd CMD] [--entrypoint ENTRYPOINT]
[--no-build] [--output-dir OUTPUT_DIR] [--add-file SRC DST]
[--user USER] [--group GROUP] [--filetools] [--verbose]

positional arguments:

optional arguments:
-h, --help show this help message and exit
--add-file SRC DST, -a SRC DST
Add file <src> to image at <dst>
--user USER, -u USER Add user to /etc/passwd in image
--group GROUP, -g GROUP
Add group to /etc/group in image
--filetools Add common file manipulation tools

Docker options:
--tag TAG, -t TAG Tag to apply to Docker image
--cmd CMD, -c CMD

Output options:
--no-build, -n Do not build Docker image
--output-dir OUTPUT_DIR, -o OUTPUT_DIR

Logging options:

## A simple example

Create a `sed` image:

dockerize -t sed /bin/sed

Use it:

$ echo hello world | docker run -i sed s/world/jupiter
hello jupiter

## A more complicated example

Create an image named `thttpd`:

dockerize -t thttpd \
-a /var/www/thttpd /var/www \
--entrypoint '/usr/sbin/thttpd -D' \
--cmd '-d /var/www' \

Serve default content:

docker run thttpd

Serve your own content:

docker run -v /my/content:/var/www thttpd

Release History

This version
History Node


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
(19.0 kB) Copy SHA256 Hash SHA256
Source None Feb 17, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting