docker集群Stack、Secret、Config命令了解(docker完结!)
1、Docker Stack
docker compose :单机部署项目
docker stack:集群部署项目
docker-compose up -d wordpress.yaml(单机部署)
docker-compose deploy wordpress.yaml(集群部署)
具体的实例可以百度!
2、Docker Secret
就是安全有关!配置密码,证书!
[root@walker1 ~]# docker secret
Usage: docker secret COMMAND
Manage Docker secrets
Commands:
create Create a secret from a file or STDIN as content
inspect Display detailed information on one or more secrets
ls List secrets
rm Remove one or more secrets
Run 'docker secret COMMAND --help' for more information on a command.
[root@walker1 ~]#
3、Docker Config
配置有关!
[root@walker1 ~]# docker config
Usage: docker config COMMAND
Manage Docker configs
Commands:
create Create a config from a file or STDIN
inspect Display detailed information on one or more configs
ls List configs
rm Remove one or more configs
Run 'docker config COMMAND --help' for more information on a command.
[root@walker1 ~]#
4、小结:
以上这些用的比较少,毕竟k8s可以代替了!
学习方式:
网上找案例学习,或者查看命令文档(--help),最好是去官网查看理解学习!
Docker完结!!!
学习之路漫漫~
未来可期!!!