Podman 命令

  1. podman –help 查詢輔助說明
    [root@kvm3 ~]# podman --help
    
  2. podman 按兩次 TAB 鍵,提示 podman 可用的命令。
    [deyu5@kvm3 ~]$ podman [TAB][TAB] 
    attach       export       inspect      pause        rmi          top
    auto-update  generate     kill         play         run          unmount
    build        healthcheck  load         pod          save         unpause
    commit       help         login        port         search       unshare
    container    history      logout       ps           secret       untag
    cp           image        logs         pull         start        version
    create       images       machine      push         stats        volume
    diff         import       manifest     rename       stop         wait
    events       info         mount        restart      system
    exec         init         network      rm           tag
    
  3. podman 每個命令也都可以使用 –help 查詢輔助說明,例如 pull 命令。
    [deyu5@kvm3 ~]$ podman search --help
    Search registry for image
    
    Description:
      Search registries for a given image. Can search all the default registries...
    
    	Users can limit the number of results, and filter the output based on...
    
    Usage:
      podman search [options] TERM
    
    Examples:
      podman search --filter=is-official --limit 3 alpine
      podman search registry.fedoraproject.org/  # only works with v2 registries
      podman search --format "table {{.Index}} {{.Name}}" registry.fedoraproject.org/fedora
    
    Options:
          --authfile string   Path of the authentication file. Use REGISTRY...
      -f, --filter strings    Filter output based on conditions provided (default [])
          --format string     Change the output format to JSON or a Go template
          --limit int         Limit the number of results
          --list-tags         List the tags of the input registry
          --no-trunc          Do not truncate the output
          --tls-verify        Require HTTPS and verify certificates when contacting ...