Portainer - Monitoring tools for K8s and Docker
Config Portainer with Shell Scripting
-
So for easily managing and reading logs, metrics, and exec console of containers, you will need monitoring tools, and
portainer
is exactly what you want, go to documentation for more detail. -
Go for check it Config Portainer in Docker for understanding what is going on for deployed containers. The script will contain 2 purposes, deploy the container and reset the password. To run this script, try this command
Config Portainer with Ansible for remote host
Info
If you want to setup
portainer
with ansible. You can perform this command. You need choose one of task in Config Portainer in Docker
- config_master: Configuration master portainer
- config_ssl_master: Configuration master portainer with SSL cert domain
- config_agent: Configuration agent portainer
- reset_password_master_portainer: Reset the password of master portainer
- When you apply the container will run, for this purpose, you can disable exposing the public port of
portainer
into the host, just access it vianginx-proxy
which optional will be best for secure and easily managing theportainer
. The configuration which you can take a look at Nginx Template Portainer for Ansible
Note
portainer
is not just managed the only your local docker, it can be managed for multiple docker viaportainer-agent
. Read this documentation for more information.