
Portainer Has a Free API — Docker and Kubernetes Management UI
Portainer is a container management platform with a beautiful UI. Manage Docker, Docker Swarm, Kubernetes, and Nomad from a single dashboard. What Is Portainer? Portainer makes container management accessible to everyone. No need to memorize Docker commands — use the web UI or REST API. Free (Community Edition): Unlimited local environments Docker and Kubernetes support Stack management Container logs and console Image management Quick Start docker run -d -p 9443:9443 --name portainer \ -v /var/run/docker.sock:/var/run/docker.sock \ -v portainer_data:/data \ portainer/portainer-ce:latest UI: https://localhost:9443 REST API # Auth TOKEN = $( curl -s -X POST https://localhost:9443/api/auth \ -d '{"username":"admin","password":"yourpassword"}' | jq -r .jwt ) # List containers curl -s https://localhost:9443/api/endpoints/1/docker/containers/json \ -H "Authorization: Bearer $TOKEN " | jq ".[].Names" # Start container curl -X POST https://localhost:9443/api/endpoints/1/docker/containers/CONT
Continue reading on Dev.to DevOps
Opens in a new tab



