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

Docker-engine command-line tool wrapper for Fabric.

Can be used both in local and remote modes (via subprocess or ssh).

Method names and options try to use the same names as related docker-engine commands and options.

So, it is mainly a helper to write:, size=True)

instead of:

run('docker ps --all --size')

With some nice use cases:

# remove dangling images "<none>:<none>"

# remove images by some filter
images = [
    image['image id'] for image in docker.images()
    if image['tag'] != 'latest'


  • Docker (local or remote - depending the mode you use)
  • Fabric
  • pyyaml

Supported commands

Only limited set of commands and options are supported now:

  • cli - run arbitrary Docker command. i.e. docker.cli('ps -a')
  • images
  • ps
  • restart
  • rm
  • rmi
  • run - limited set of options
  • start
  • stop
  • version
  • none_images - helper method to get “dangling” images


pip install fabric-docker


Create instance to use locally with sudo:

import fabric_docker

docker = fabric_docker.DockerCli(local=True, use_sudo=True)
# any command can override this default settings by suppling
# "local" and "sudo" key-value arguments

List all local containers:

Remove latest container:


List remote images (override default local flag):

docker.images(no_truncate=True, local=False)

Run remote container:
    volume={'/host/dir': '/container/dir', '/host/dir2': '/container/dir2'},
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fabric-docker-0.1.tar.gz (5.3 kB) Copy SHA256 Checksum SHA256 Source Mar 14, 2016

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting