On this pageTwo tools, two layers
Portainer and Cosmos Cloud both install as a container, both mount the Docker socket and both show you a list of running containers, so they end up compared. They work at different layers. Portainer is a console for operating containers, on one host or across many. Cosmos Cloud is a front door: it puts your apps behind a reverse proxy with automatic HTTPS, a login screen and traffic rules, and manages the containers behind it as a means to that end. Knowing which problem you have makes the choice, and sometimes the answer is both.
Two tools, two layers
Portainer manages container environments: Docker on a single host, Docker Swarm, Kubernetes and Podman. You deploy Compose stacks, including from a Git repository, inspect images, volumes and networks, read logs and open a console in a container. Agents and Edge agents connect more hosts to one interface, including machines behind NAT. The Community Edition (CE) is licensed under zlib; the paid Business Edition adds role-based access control and other team features.
Cosmos Cloud manages how apps are reached. Its reverse proxy routes hostnames to containers, other servers or static sites and fetches Let's Encrypt certificates, wildcards included through a DNS challenge. It can require its own login, with two-factor authentication and OpenID single sign-on, in front of apps that have weak or no authentication. SmartShield adds rate limiting and anti-bot rules, the Constellation VPN reaches private apps over UDP port 4242, and Restic-based backups, monitoring with alerts and a storage manager round it out. Its license is Apache 2.0 with the Commons Clause, which allows free use, including for a business, but forbids selling Cosmos or a service built on it.
Side by side
| Portainer CE | Cosmos Cloud | |
|---|---|---|
| Main job | Operate containers and stacks | Publish apps safely |
| Scope | Docker, Swarm, Kubernetes and Podman, many hosts through agents | Mainly the server it runs on |
| HTTPS for your apps | Not included; add a reverse proxy | Built in, with automatic certificates |
| Login in front of apps | No | Yes, with 2FA and OpenID |
| App catalog | App templates | App store with automatic updates |
| Backups | Its own settings | Encrypted, incremental app backups with Restic |
| Remote access | Through your own VPN | Constellation VPN built in |
| License | zlib; Business Edition is paid | Apache 2.0 with Commons Clause |
| Ports | 9443 for its UI, 8000 for Edge agents | 80 and 443 on the host, 4242/udp for the VPN |
Updates and day-two work
The difference shows most after the first week. In Portainer, updating an app is an explicit action: edit the stack or the container, tick the option to re-pull the image, and redeploy. That suits servers where every change should be deliberate and visible. Cosmos's app store updates the apps it installed on its own and runs security checks on them, which suits a household server that nobody wants to babysit, at the cost of less control over the moment a new version arrives. For apps you deployed yourself in either tool, pin image tags you have tested and update on purpose, rather than following latest blindly.
Monitoring follows the same split. Portainer shows container state, resource stats and logs per container. Cosmos keeps monitoring history with alerts you can configure, and its SmartShield acts on traffic at the edge, a layer Portainer never sees.
When Portainer fits better
- You run several Docker hosts, a Swarm or Kubernetes cluster and want one place to see them.
- Several people share the work and need separate accounts.
- You already publish apps through Caddy, Traefik or Nginx Proxy Manager, so the edge is solved.
- You deploy stacks from Git and want a UI over that workflow.
When Cosmos Cloud fits better
- One home server or VPS publishes a handful of web apps to the internet.
- You want HTTPS and a login in front of each app without assembling a reverse proxy and an identity provider yourself.
- Family members or a small team use the apps, and an app store with automatic updates matters more than fine-grained container control.
Both hold the keys to the server
Whoever controls a tool that holds the Docker socket can start a privileged container and take over the host. Cosmos goes further by design: it runs privileged with host networking, and its documented install can mount the host's root filesystem so you can manage folders from its interface. Treat both admin interfaces like root SSH:
- Use long unique passwords and turn on two-factor authentication for every admin account.
- Keep Portainer's UI off the public internet: bind it to localhost, reach it over a VPN, or allow it only from your own address. Publish port 8000 only if you use Edge agents.
- Cosmos is meant to face the internet on 80 and 443, so its updates and its own login matter even more. Leave the optional host mount out if you do not need folder management.
- Update both promptly, since a vulnerability in either is a vulnerability in the whole server.
Running both on one server
The combination works well: Cosmos owns the edge, Portainer handles day-to-day operations behind it. Install Cosmos first, from the command line rather than as a Portainer stack, which its documentation warns against:
sudo docker run -d --network host --privileged --name cosmos-server -h cosmos-server --restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
-v /var/lib/cosmos:/config \
azukaar/cosmos-server:latest
Then run Portainer with its plain HTTP port bound to localhost only, so nothing outside the server can reach it directly:
docker volume create portainer_data
docker run -d --name portainer --restart=always \
-p 127.0.0.1:9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:lts
In Cosmos, add a route for a hostname such as portainer.example.com that points to http://127.0.0.1:9000, and require authentication on it. Cosmos then provides the certificate and its login screen, and Portainer's own login stays behind it as a second lock.
Give each app one owner. Cosmos keeps settings for the apps it installed, and editing the same containers from Portainer can leave the two views out of step. A simple rule: apps installed from Cosmos's store are changed in Cosmos, and everything you deploy as a stack is changed in Portainer.
Both are one-click apps on CloudSat, as Portainer and Cosmos Cloud. For a wider comparison of Cosmos with CasaOS and umbrelOS, see CasaOS vs Umbrel vs Cosmos Cloud.
FAQ
Does Cosmos Cloud replace Portainer?
On a single server that publishes apps, often yes: its container view covers starting, stopping, logs and Compose imports. For several hosts, Kubernetes or team access control, Portainer remains the better console.
Is Portainer CE free for business use?
Yes. The zlib license allows commercial use. Role-based access control and other extras belong to the Business Edition, a separate paid product.
What happens to my apps if I remove one of them?
The containers keep running, because both tools drive the ordinary Docker engine. Removing Portainer loses only its own settings and stack history. Removing Cosmos also removes its reverse proxy and login, so apps published through it stop answering on their hostnames until another proxy takes over.
Do I need a domain name?
For Cosmos, practically yes: automatic HTTPS needs a hostname that points at your server. Portainer works without one and serves its UI on port 9443 with a self-signed certificate until you supply your own.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




