创建配置文件. 主要是在docker swarm service创建的过程中 挂在配置文件

主要在docker swarm 容器管理中使用

docker swarm init

echo "This is a config" | docker config create my-config -

挂在配置文件my-config到service容器

docker service create --name redis --config my-config redis:alpine

    

 

 

 

 

      docker config 创建配置文件

 

 

 

 

      docker config 创建配置文件

 

 

      docker config 创建配置文件

 

 

 

      docker config 创建配置文件

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-04-09
  • 2021-09-20
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-25
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案