Skip to main content

Simple command interface to manage multiple Docker container

Project description

dckrmgr

Prerequisites

The easiest way ist through pip3 (Ubuntu: apt-get install python3-pip):

Installation

git clone git@github.com:theascone/dckrmgr.git
mkdir -p /usr/local/src/dckr
mv dckrmgr/* /usr/local/src/dckr
ln -s /usr/local/src/dckr/dckrmgr /usr/local/bin/dckrmgr

Usage

Dckrcnf.json

Example:

{
    "name": "phabricator",

    "image": {
        "name": "theascone/docker_phabricator",
        "version": "latest"
    },

    "hostname": "phabricator.weiltoast.de",

    "environment": [
        {
            "name": "MYSQL_USER",
              "value": "phabricator"
        },
        {
            "name": "MYSQL_PASS",
            "value": "xyz"
        }
    ],
    "volumes": [
        {
            "host_path": "var_log",
            "container_path": "/var/log",
            "mode": "rw"
        },
        {
            "host_path": "/var/run/docker.sock",
            "container_path": "/tmp/docker.sock",
            "mode": "ro"
        }
    ],
    "ports": [
        {
            "container_port": 22,
            "host_port": 22
        },
        {
            "container_port": 22280,
            "host_port": 22280
        }
    ],
    "links": [
        {
            "name": "mysql_phabricator",
            "alias": "mysql"
        }
    ]
}

Equivalents to Docker CLI:

Dckrcnf Docker CLI Comment
name --name
image(name, version) name:version
hostname --hostname (-h)
environment[(name, value)] --env (-e) Json Array
volumes[(host_path, container_path, mode)] --volume (-v) host_path:container_path:mode host_path can be relative to location of dckrcnf.json Json Array
ports[(container_port, host_port)] --publish (-p) host_port:container_port Json Array
links[(name, alias)] --link name:alias Json Array

dckrmgr

dckrmgr [-h] [-D P_CWD_TOP] [-R] [-t] [-r] [-c] [-s]

optional arguments:
  -h, --help    show this help message and exit
  -D P_CWD_TOP  Set working directory
  -R            Use dckrsub.json files to recursively apply operations
  -t            Stop container
  -r            Remove container
  -c            Create container
  -s            Start container

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

portmgr-1.4.4rc1.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file portmgr-1.4.4rc1.tar.gz.

File metadata

  • Download URL: portmgr-1.4.4rc1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.4

File hashes

Hashes for portmgr-1.4.4rc1.tar.gz
Algorithm Hash digest
SHA256 1420698d8a5bced8b80f5dc2158c980de60513cecb52afe1d176587c732e3814
MD5 74442838460ffea5f5118b7a85ff1ade
BLAKE2b-256 d8c9d9c72ca0d6853fd0f095abfb48a3102a999678d2a93aa40c66c7d1072e4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page