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

11 Commits

Author SHA1 Message Date
yuqi-zhang
fb3779349e Add --storage option to image-related commands
Add an optional --storage flag to the following commands:
 - images delete
 - info
 - mount
 - verify
 - version

If specified, the command will only look at the specified storage
(ostree/docker) for the image to perform the action. If not
specified, the command will look through both ostree/docker for
the image (as it was before). However, if the storage is not
specified and the image exists in both ostree and docker, the
command will error and prompt the user to specify. Image inspection
also no longer forces the user to delete/rename one or the other.

This is meant to address the duplicate naming issue (where a user
can have an image in both ostree and docker with the same name).

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

Closes: #720
Approved by: giuseppe
2016-10-24 09:27:00 +00:00
Mahmoud Tohmaz
c66bf4e32c Atomic will mount/unmount a user image.
Ostree already has functionality to extract images as non-root user. This involves changing OSTree's checkout mode to USER (only if the image's repo was created with BARE_USER mode).
Atomic will then ignore calls to mount_path since there is no need to run the mount systemcall since ostree checkout already takes care of thata.

Also added changes to allow atomic to unmount an image previously mounted by non-root user. This involves a patch to atomic mount to change permissions of the image once mounted. It then removes symbolic links before removing all the subdirectories in the specified mount directory.

Closes: #509
Approved by: rhatdan
2016-09-06 20:38:35 +00:00
Dan Walsh
1c0a36e416 Fix reference to containers/images in atomic mount help and man page
Closes: #563
Approved by: giuseppe
2016-08-26 22:01:14 +00:00
Giuseppe Scrivano
41fd18e05d docs: add system containers info to "atomic mount"
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #480
Approved by: rhatdan
2016-07-15 13:44:51 +00:00
Dan Walsh
be7283d595 Add missing information on atomic mount --shared option
Missing from command completion and from man pages.
2016-06-03 13:23:59 -04:00
Alex Jia
6e2691e682 docs: fix typos
Signed-off-by: Alex Jia <ajia@redhat.com>
2015-07-29 13:38:23 +08:00
William Temple
534966f7cb DockerMount OverlayFS backend.
Signed-off-by: William Temple <willmtemple@gmail.com>
2015-07-10 14:54:01 -04:00
William Temple
844cc4512d New test framework.
Signed-off-by: William Temple <wtemple@redhat.com>
2015-07-10 14:09:37 -04:00
William Temple
a2d4506d74 Bugfix for incorrect functionality when user does not have GraphDriver API exposure via docker inspect.
Signed-off-by: William Temple <wtemple@redhat.com>
2015-06-22 09:43:35 -04:00
William Temple
56ebdfa101 Live container mount, restructured to avoid potentially massive breakage with
LVM devicemapper.

Improved handling of SELinux context, and modularized Mount module.

Signed-off-by: William Temple <wtemple@redhat.com>
2015-06-19 10:54:12 -04:00
William Temple
a20794b559 atomic mount/unmount commands 2015-06-04 14:43:34 -04:00