This adds the --log-opt tag=<value> to the docker run command, which can
be quite useful depending on your logging needs.
In the TripleO case, we use journald as the default logging driver, and
this will get reflected in the logs by adding the tag to the
CONTAINER_TAG key in the log metadata.
bp logging-stdout-rsyslog
Change-Id: I3bfb1a5ce2d6a6f95519f5272348eae18d649712
This change adds various debugging abilities to paunch. It lets you:
- Dump yaml or json of a single container configuration.
- Run a single container with a given configuration.
- Run a single container with overridden configuration elements.
- Print out the run command used to start a container.
Change-Id: If8995e1c94034e1b22cd92951ee3fd702048323b
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links
Change-Id: I3a0855cbd2bb25a47fbcee457d4fd2eeb8dd620a
This change implements idempotency so that apply can be run multiple
times with the same config ID. The aim of the idempotency behaviour is
to leave containers running when their config has not changed, but
replace containers which have modified config.
The logic sequence for idempotency is as follows:
- For each existing container with a matching config_id and
managed_by:
- delete containers which no longer exist in config
- delete containers with missing config_data label
- delete containers where config_data label differs from current
config
- Do a full rename to desired names since deletes have occured
- Only create containers from config if there is no container running
with that name
- exec actions will be run regardless, so commands they run may require
their own idempotency behaviour
This change won't modify the behaviour of docker-cmd hook idempotency
since config IDs are never reused.
Change-Id: I29d07f7910258495804477d08de6040116527e8e