1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-06 03:45:28 +01:00

15 Commits

Author SHA1 Message Date
Brent Baude
ed9eaf2e55 Fix Stop Regression: BZ #1422448
BZ #1422448 actually points out one regression and one
bug related to atomic stop. The BZ itself points out
a TypeError exception in the code when trying to glue
together a python list and str.

Then the atomic stop command was failling in the case where a
STOP label was defined and it uses the variable $NAME resulting
in a subprocess exception.

The self.name variable was not being set by set_args after
refactoring occured.  Ideally, this should all be moved
into the image|container object handling but for now we
just handle it in set_args.

Also added a test in test_display to catch any future
regressions.

Closes: #899
Approved by: rhatdan
2017-02-20 20:37:38 +00:00
Brent Baude
9f6612a9a2 Refactor atomic stop
Refactoring of atomic stop to use container objects and the new backend
methods.

Closes: #798
Approved by: rhatdan
2016-12-14 15:45:39 +00:00
yuqi-zhang
3e55ad6621 Start/stop syscontainers with atomic run/stop
Wrap atomic run/stop with systemctl start/stop for system
containers. This way the user can directly use the atomic
CLI for the full container cycle. In addition, the equivalent
functionality already exists for docker containers, so it
makes sense to allow system containers to start/stop in a
similar fashion.

Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>

Closes: #651
Approved by: rhatdan
2016-09-21 20:56:13 +00:00
Daniel J Walsh
83f103badd Merge pull request #290 from chuanchang/fix_typos
docs: fix typo in atomic-stop.1.md
2016-01-20 06:22:25 -08:00
Alex Jia
548492b25a docs: fix typo in atomic-stop.1.md 2016-01-20 17:59:38 +08:00
Dusty Mabe
ec724f7bca Allow additional args to be provided to "stop". 2015-12-18 12:07:46 -05:00
Antonio Murdaca
c5c3e3f2b9 docs: atomic-stop.1.md: remove --name flag from example
`docker kill` doesn't support a `--name` flag, just container name/id
directly.

Signed-off-by: Antonio Murdaca <amurdaca@redhat.com>
2015-10-05 20:22:28 +02:00
Dan Walsh
4f45fc0467 Add missing options to man pages 2015-08-31 09:41:10 -04:00
Sally O'Malley
904588f97e atomic man fixes
Signed-off-by: Sally O'Malley <somalley@redhat.com>
2015-08-26 11:44:10 -04:00
Avesh Agarwal
f74c89e431 Fixes a typo. 2015-08-21 11:16:50 -04:00
Alex Jia
6e2691e682 docs: fix typos
Signed-off-by: Alex Jia <ajia@redhat.com>
2015-07-29 13:38:23 +08:00
Brian (bex) Exelbierd
53d3dc83c6 Add SUDO_UID and SUDO_GID variable substitions
These substions are useful with docker -u SUDO_UID:SUDO_GID ...
for userspace tools such as format translators
2015-06-27 17:42:48 +02:00
Solly Ross
d8d695381e Add IMAGE and NAME as environment variables
This commit adds `IMAGE` and `NAME` as environment variables
passed to install, uninstall, stop, and run (similarly to
`CONFDIR`, `DATADIR`, and `LOGDIR`).  This allows users to write
`NAME=${NAME}` instead of `NAME=NAME`, and also enables `${NAME}`
and `${IMAGE}` to be used in arbitrary parts of the commands.
2015-06-17 14:23:16 -04:00
Avesh Agarwal
f856aec77e Fixing typos. 2015-03-31 16:32:13 -04:00
Dan Walsh
c6390c7f82 Add atomic stop command 2015-03-04 12:01:17 -05:00