Skip to main content

Python Script to steer (multiple) docker-compose-yaml's from everywhere.

Project description

dockerctl

Python Script to steer docker-compose-yaml's from everywhere.

https://pypi.org/project/dockerctl/

Installation:

Installation from PyPi: pip install dockerctl
Manual installation: Type pip install . in the project's directory

Be aware that you have to call python3 pip, so if you're on an distro that defaults to py2, use python3 -m pip

This program is released under the GPLv3. See "LICENSE" for further information.

This program is going to have the first release soon, please report bugs and propose enhancements.

usage: dockerctl [-h] [-v] [-l] [--list] [--path PATH] COMMAND COMPOSE_NAME [extra ARGS passed to docker-compose]
                 start: Start the composition
                 stop: Stop the composition
                 restart: Restart it.
                 ps: Show processes of services in composition.
                 up: Calls docker-compose up -d, composition runs as daemon afterwards.
                 down: Calls docker-compose down, composition gets stopped and deleted.
                 kill: Kill the whole composition, if you don't pass extra args.
                 rm: Removes all volumes created by the compose yaml.
                 top: Get information about the processes in the services.
                 logs: Get the logs of the whole composition. Pass -f to get ongoing information.
                 images: Shows images used by the services in the composition.
                 port: Shows the port used and mapped by the composition.
                 pull: Pull images needed by the composition.
                 push: Push built images of the composition.
                 pause: Pause all services in the composition.
                 unpause: Unpause them.
                 add: Links the current dir to a folder with the compose_name under /etc/docker. Use [--path] to link an other path than curdir.
                 remove: Removes composition folder or link under /etc/docker
                 exec: Exec something in a service of a container. [ARGS] can optionally be used to write the command.
                 edit: Edit the docker-compose.yml. Uses the EDITOR env var.
                 show: Shows the docker-compose.yml in less.
                 create: Create dir with compos_name under /etc/docker
                 update: Runs pull and up in one command to update a composition.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dockerctl-1.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file dockerctl-1.1-py3-none-any.whl.

File metadata

  • Download URL: dockerctl-1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for dockerctl-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee9fca18514dc542bd3e78188ca5e893731b2ab41bb6f09e245dd04fd0fa2f88
MD5 c69a78735c5bb4bb566e9f0347a27b46
BLAKE2b-256 02346e9d16e2d261fdb7b08e5d757fb2939fbbd340d3a68e0e99ec951dfdae1c

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