brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: put Portainer environments in groups and give users access to a whole group

Portainer
~/tips/tip-portainer-environment-groups

cat ~/tips/tip-portainer-environment-groups.md

Organizes environments into groups, so access and tags apply to all of them at once.

Once Portainer manages more than one machine, the list gets long fast. Groups keep it tidy, and they save work when you give someone access.

In the menu, expand Environment-related, choose Groups and click Add group. Give it a name and an optional description, apply tags if you like, and use Associated environments to add the environments. Then click Create.

The Portainer docs give development, staging and production as examples. A home version could be one group for the server in the closet and one for a remote machine.

The useful part is access. You can give users or teams a role on a group, and they inherit access to every environment in it. Add a new machine to the group later and the same people can use it, without you touching each user. You can also add or remove several environments at once from the group’s edit view.

The caveat is the edition. Community Edition supports basic user and group assignments, and for more complex roles inside groups you need Business Edition. Check what your role choices are before you plan a layout around them.

Further reading: Portainer: environment groups

More Portainer tips Choose Polling in a Portainer GitOps update when your Git host can't reach Portainer Portainer's Edge Agent checks in every 5 seconds, and you can change that docker run -d -p 9001:9001 --name portainer_agent --restart=always \ Deploy the container → Replace Public IP: 192.168.1.20 All Portainer tips (28) All topics

Link