containers.podman.podman_runlabel 模块 – 从给定镜像运行给定标签

注意

此模块是 containers.podman 集合 (版本 1.16.2) 的一部分。

如果您使用的是 ansible 软件包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install containers.podman。您需要进一步的要求才能使用此模块,有关详细信息,请参阅 要求

要在剧本中使用它,请指定: containers.podman.podman_runlabel

概要

  • podman container runlabel 从给定镜像运行选定的标签

要求

执行此模块的主机需要以下要求。

  • 主机上安装了 Podman

参数

参数

注释

executable

字符串

如果 podman 可执行文件不在运行 podman 的机器上的 $PATH 中,则指向 podman 可执行文件的路径

默认值: "podman"

image

字符串 / 必需

获取标签的镜像。

label

字符串 / 必需

要运行的标签。

示例

# What modules does for example
- containers.podman.podman_runlabel:
    image: docker.io/continuumio/miniconda3
    label: INSTALL

作者

  • Pavel Dostal (@pdostal)