Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Run in Docker

Project description

Rind (Run in Docker) is a simple command line tool for executing things inside docker containers.


Whilst Rind is a Python package and can be installed with pip, the preferred method of installed is to download the latest binary release and place it somewhere on the system PATH


To rind enable a container a app.rind label needs to be added. Do do this in a docker-compose.yml you would do the following:

        image: an_image
            - app.rind

Rind also has the ability to run pre-steps when executing inside the container. For example activating a Python virtualenv.

To enable a pre-step you need to add it as a value to your label.

        image: an_image
            app.rind: "source /venv/bin/activate"

This assumes you virtualenv is at /venv within your docker container. It will be combined with the actual command passed in. e.g.: rind /bin/sh would be run in your container as source /venv/bin/activate && /bin/sh


Effectively anything passed as a command line argument is executed directly within the rind enabled container. e.g.

rind ./ migration

Would run the script in the containers working directory, passing it the migrate argument

If no parameters are passed to rind then the default /bin/sh is used which will give you and interactive terminal.

Project details

Download files

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

Files for rind, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size rind-0.2.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page