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       If you execute the command without any arguments, Podman will list  all
22       of the currently mounted containers, including external containers. 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 you enter the
28       user namespace via the podman unshare command. All other storage  driv‐
29       ers will fail 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 will not be 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.  If you use methods other than Podman to run containers such
49       as CRI-O, the last started container could  be  from  either  of  those
50       methods.  (This  option is not available with the remote Podman client,
51       including Mac and Windows (excluding WSL2) machines)
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
65              podman mount
66
67              c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
68              a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
69
70
71
72              podman mount c831414b10a3 a7060253093b
73
74              /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
75              /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
76
77
78
79              podman mount
80
81              c831414b10a3 /var/lib/containers/storage/overlay/f3ac502d97b5681989dff84dfedc8354239bcecbdc2692f9a639f4e080a02364/merged
82              a7060253093b /var/lib/containers/storage/overlay/0ff7d7ca68bed1ace424f9df154d2dd7b5a125c19d887f17653cbcd5b6e30ba1/merged
83
84
85

SEE ALSO

87       podman(1), podman-umount(1), podman-unshare(1), mount(8)
88
89
90
91                                                               podman-mount(1)
Impressum