Skip to main content

A tool for restarting docker containers if their configuration or base image changes.

Project description

A tool for restarting docker containers if their configuration or base image changes.

Installation

$ pip install docker-py

Configuration

{
    "image_name": "username/image",
    "container_name": "container",
    "environment": {
        "VAR1": "value1",
        "VAR2": 2
    },
    "ports": {
        "5000": "127.0.0.1:5000"
    }
}
Field Required Description
image_name Yes Name of the docker image to base container on
container_name Yes Name of the docker container to create or update
environment No Dictionary of key value pairs for the docker environment
ports No Dictionary of key value pairs for port mappings

Running

$ restart_docker <filename> <image version>

Project details


Release history Release notifications

This version

0.0.1

Download files

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

Files for restart_docker, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size restart_docker-0.0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page