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: hide the containers you never want to see in Portainer with --hide-label

Portainer
~/tips/tip-portainer-hide-label

docker run -d ... portainer/portainer-ce:lts -l owner=acme

Hides containers that carry a chosen label from the Portainer container list.

Some containers just add noise in the Portainer list. Portainer itself, helper containers, things you never touch. You can hide them by label.

Start Portainer with --hide-label (short form -l) and a label name and value:

docker run -d ... portainer/portainer-ce:lts -l owner=acme

Any container that carries the label owner=acme disappears from the UI. You can repeat the flag for more labels. Add the label to a container in your Compose file under labels: and it is gone from the list after it starts.

There is also a Hidden containers section in the settings screen that does the same thing from the UI, with a label name and value.

The caveat: hidden only means hidden from view. The container still runs, and it is not protected. Anyone with Docker access sees it. Use it for tidiness, and keep secrets out of it.

I like this for the boring stuff: sidecar containers, one-off helpers and anything that makes the list longer than it needs to be. It also keeps screenshots tidy when you share your screen. A label like owner=acme is only an example; pick a name that makes sense for you and use the same one everywhere, otherwise you will forget which containers carry it.

Further reading: CLI configuration, General settings, On this site: give containers made outside Portainer an owner with an access-control label, On this site: change Portainer's snapshot interval when the home page feels out of date

More Portainer tips Choose Polling in a Portainer GitOps update when your Git host can't reach Portainer Put Portainer environments in groups and give users access to a whole group 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 All Portainer tips (28) All topics

Link