moby/cli
Boaz Shuster 4426189b35 Validate docker-load receives a tar file
To load an image from a tar file, you can specify
the tar file in the -i/--input option:
docker load -i image_1.tar

or using stdin:

docker load < image_1.tar
cat image_1.tat | docker load

If the image file isn't given the `docker load`
command gets stuck.

To avoid that, the load makes sure the CLI input is
not a terminal or the `--input` option was set.
If not then an error message is shown.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
2016-10-31 15:30:55 +02:00
..
command Validate docker-load receives a tar file 2016-10-31 15:30:55 +02:00
flags Merge pull request #27276 from yuexiao-wang/func-name 2016-10-13 12:10:59 -07:00
cobra.go Only hide commands if the env variable is set. 2016-09-19 13:28:15 -04:00
error.go Remove old cli framework. 2016-08-25 13:09:04 -04:00
required.go fix typos 2016-07-05 20:42:17 +08:00