2016-06-14 15:32:38 +02:00
% ATOMIC(1) Atomic Man Pages
% Giuseppe Scrivano
% June 2016
# NAME
2016-09-01 12:43:09 -04:00
atomic-containers - operations on containers
2016-06-14 15:32:38 +02:00
# SYNOPSIS
2016-09-01 12:43:09 -04:00
**atomic containers COMMAND [OPTIONS] [CONTAINERS...]**
atomic containers allows the user to view and operate on containers
# COMMANDS
2016-09-08 12:01:24 -04:00
**delete**
delete specified container(s).
2016-09-01 12:43:09 -04:00
**list**
list containers on your system.
2016-09-06 16:09:10 -04:00
**trim**
discard unused blocks (fstrim) on running containers.
2016-06-14 15:32:38 +02:00
2016-12-12 21:35:47 +00:00
**update**
update a system container.
**rollback**
rollback a system container.
2016-06-14 15:32:38 +02:00
# DESCRIPTION
2016-12-12 21:35:47 +00:00
**atomic containers delete**, delete specified container image from the system.
Using --all will delete all the installed containers.
2016-09-01 12:43:09 -04:00
**atomic containers list**, by default, will list all running containers on your
2016-06-14 15:32:38 +02:00
system.
Using --all will list all the installed containers.
2016-09-06 16:09:10 -04:00
**atomic containers trim**, Discard unused blocks (fstrim) on rootfs of running containers.
e.g. If you have 2 running containers on your system with container IDs (496b8679b6cf, 9bb990da1203).
>atomic containers trim
Trimming container id 496b8679b6cf
Trimming container id 9bb990da1203
2016-12-12 21:35:47 +00:00
**atomic containers update**, update a system container to use a newer version of an image.
Can use --set to update environment variables.
**atomic containers rollback**, rollback a system container to the other deployment if one exists.
2016-06-14 15:32:38 +02:00
# OPTIONS:
**-h** * * --help**
Print usage statement
2016-09-08 12:01:24 -04:00
# delete OPTIONS:
**-a** * * --all**
Delete all the installed containers
**-f** * * --force**
Force the deletion of specified running containers
2016-09-06 16:09:10 -04:00
# list OPTIONS:
2016-06-14 15:32:38 +02:00
**-a** * * --all**
Print all the installed containers
2016-07-20 19:39:50 +00:00
**-f** * * --filter**
2017-03-10 17:57:20 +00:00
Filter output based on given filters, example usage: `--filter container=foo` will list all containers that has "foo" as part of their container ID.
2016-07-20 19:39:50 +00:00
2017-03-10 17:57:20 +00:00
Filterables: `backend` , `command` , `container` , `created` , `image` , `runtime` , `state`
2016-07-20 19:39:50 +00:00
**--json**
2016-07-27 11:47:23 +08:00
Print in a machine parsable format
2016-06-14 15:32:38 +02:00
2016-07-20 19:39:50 +00:00
**-n** * * --noheading**
Do not print heading when listing the containers
**--no-trunc**
Do not truncate output
**-q** * * --quiet**
Only display container IDs
2016-12-12 21:35:47 +00:00
# update OPTIONS:
2017-02-09 14:22:13 +01:00
**--rebase=IMAGE**
Rebase to a different image. If not specified, the same image used to install the container will be used.
2017-11-27 23:46:50 +01:00
**-a** * * --all**
Update all the installed containers. If any update fails, then it rollbacks automatically to the working version of the container.
2016-12-12 21:35:47 +00:00
**--set=NAME=VALUE**
Set a value that is going to be used by a system container for its configuration and can be specified multiple times. OSTree is required for this feature to be available.
2016-06-14 15:32:38 +02:00
# HISTORY
June 2016, Originally compiled by Giuseppe Scrivano (gscrivan at redhat dot com)
2016-07-20 19:39:50 +00:00
July 2016, Added sub-commands filter, no-trunc and quiet (jerzhang at redhat dot com)
2016-09-06 16:09:10 -04:00
Sept 2016, Added atomic containers trim subcommand (shishir dot mahajan at redhat dot com)