The PutLayer() wrapper in the CLI tool wasn't updated to discard the new
size result that it returns. Fix that.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Add a (currently empty) options argument to Store.CreateImage(), in an
attempt to head off having to add one argument after another as we add
new options.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Add a (currently empty) options argument to Store.CreateContainer(), in
an attempt to head off having to add one argument after another as we
add new options.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Rename the Mall interface to Store, and the Store interface to
FileBasedStore. This is why you don't want me naming things, people.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Add aliases for the CLI commands that have hyphens in their names, or
could, so that I can stop having to remember whether or not a given
command includes one or not.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Capitalize the first word of the help text that we've added for the -j
and -n options, to match the other help text.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Support attaching multiple names (instead of the previous optional one)
to layers, images, and containers. Add SetNames() and GetNames()
methods that accept an ID for any type of item. The CLI wrappers can
now be passed multiple -n/--name options.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Add a --json flag to most of the CLI commands, to force output that
would have gone to stdout to be output as JSON instead of whatever form
it would otherwise take. Error messages sent to stderr are still plain
text.
Use this chance to rework the wrapping logic so that it's more
consistent: commands that take multiple IDs attempt the specified
operation on all of them, and report errors afterward.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Rename the library module and CLI wrapper.
Rename daemon/graphdriver to drivers.
Catch up vendoring to match modules we've pruned.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>