restart_docker
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>
Metadata
Release files for restart_docker 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| restart_docker-0.0.1.tar.gz | 3.2 kB | Without provenance | Details for restart_docker-0.0.1.tar.gz |
Release files / restart_docker-0.0.1.tar.gz
| Download URL | restart_docker-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3789c61846413c5816e40b175dd112f5c9b6e15b7ce36ca06e30f65ad4e78afa
|
|
BLAKE2b-256 checksum How to use checksums |
6619abc4b846b7acedd2307b6e85da7f94cdd839d207f2ef710c7ab576b67089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for restart_docker 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.