zoukankan      html  css  js  c++  java
  • Saltstack module container_resource 详解

    container_resource.cache_file

    Wrapper for cp.cache_file which raises an error if the file was unable to
    be cached.
    
    CLI Example:
    
        salt myminion container_resource.cache_file salt://foo/bar/baz.txt
    

    container_resource.run

    Common logic for running shell commands in containers
    
    path
        path to the container parent (for LXC only)
        default: /var/lib/lxc (system default)
    
    CLI Example:
    
        salt myminion container_resource.run mycontainer 'ps aux' container_type=docker exec_driver=nsenter output=stdout
    

    container_resource.copy_to

    Common logic for copying files to containers
    
    path
        path to the container parent (for LXC only)
        default: /var/lib/lxc (system default)
    
    CLI Example:
    
        salt myminion container_resource.copy_to mycontainer /local/file/path /container/file/path container_type=docker exec_driver=nsenter
  • 相关阅读:
    CF 336494 C. Meme Problem
    MySql备份
    MySQL索引背后的数据结构及算法原理
    show profile 开启权限
    示例数据库
    索引使用策略及优化
    shiro权限登录案例
    Swagger技术
    Shiro框架
    shiro授权管理
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_container_resource.html
Copyright © 2011-2022 走看看