NAME 名称

podman-volume-mount - Mount a volume filesystem
podman-volume-mount - 挂载卷文件系统

SYNOPSIS 概要

podman volume mount [volume …]

DESCRIPTION 描述

Mounts the specified volumes’ file system in a location which can be accessed from the host, and returns its location.
在可以从主机访问的位置挂载指定卷的文件系统,并返回其位置。

Rootless mode only supports mounting file volumes unless Podman is run within the user namespace via the podman unshare command. All other volume types fail to mount.
无根模式仅支持挂载文件卷,除非通过 podman unshare 命令在用户命名空间中运行 Podman。所有其他卷类型均无法挂载。

RETURN VALUE 返回值 ¶

The location of the mounted file system. On error an empty string and errno is returned.
挂载文件系统的位置。发生错误时返回空字符串和错误代码。

EXAMPLE 例子 ¶

Mount specified volume. As Root:
挂载指定卷。作为 Root:

# podman volume mount foo
/home/dwalsh/.local/share/containers/storage/volumes/foo/_data

In rootless mode, volume mounting only works after executing the podman unshare command to enter the user namespace.
在无根模式下,只有在执行 podman unshare 命令进入用户命名空间后,卷挂载才能正常工作。

$ podman unshare
# podman volume mount foo
/home/dwalsh/.local/share/containers/storage/volumes/foo/_data

SEE ALSO 参见 ¶

podman(1), podman-volume(1), podman-volume-unmount(1), podman-unshare(1), mount(8)
podman(1),podman-volume(1),podman-volume-unmount(1),podman-unshare(1),mount(8)