Skip to main content

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.

In fact this is the only support pre-step currently. Ideas of others are welcome.

To enable the virtualenv automatically prior to executing you need to add a value to your label.

        image: an_image
            app.rind: "python"

Currently this assumes you virtualenv is at /venv within your docker container.


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.1.0
Filename, size File type Python version Upload date Hashes
Filename, size rind-0.1.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