1podman-mount(1)             General Commands Manual            podman-mount(1)
2
3
4

NAME

6       podman-mount - Mount a working container's root filesystem
7
8

SYNOPSIS

10       podman mount [options] [container ...]
11
12
13       podman container mount [options] [container ...]
14
15

DESCRIPTION

17       Mounts  the  specified containers' root file system in a location which
18       can be accessed from the host, and returns its location.
19
20
21       Podman lists all of the currently mounted containers, including  exter‐
22       nal containers, when the command is executed without any arguments. Ex‐
23       ternal containers are containers in container/storage  by  tools  other
24       than Podman.  For example Buildah and CRI-O.
25
26
27       Rootless  mode  only supports mounting VFS driver, unless Podman is run
28       within the user namespace via the podman  unshare  command.  All  other
29       storage drivers fails to mount.
30
31

RETURN VALUE

33       The  location of the mounted file system.  On error an empty string and
34       errno is returned.
35
36

OPTIONS

38   --all, -a
39       Mount all podman containers. (External containers are not mounted)
40
41
42   --format=format
43       Print the mounted containers in specified format (json).
44
45
46   --latest, -l
47       Instead of providing the container name or ID,  use  the  last  created
48       container.  Note: the last started container can be from other users of
49       Podman on the host machine.  (This option is not available with the re‐
50       mote  Podman  client,  including  Mac  and Windows (excluding WSL2) ma‐
51       chines)
52
53
54   --no-trunc
55       Do not truncate the output (default false).
56
57

EXAMPLE

59       podman mount c831414b10a3
60
61       /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
62
63
64       podman mount
65
66       c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
67       a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
68
69
70       podman mount c831414b10a3 a7060253093b
71
72       /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
73       /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
74
75
76       podman mount
77
78       c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
79       a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
80
81
82

SEE ALSO

84       podman(1), podman-unmount(1), podman-unshare(1), mount(8)
85
86
87
88                                                               podman-mount(1)
Impressum