超级轻量级 超级好用方便,通过web ui管理docker方方面面的工具, 跟k8s不兼容, 但是跟swarm是兼容的.
单机情况下使用k8s没太大意义, 只有一个master且为node, 这种情况最好还是 Portainer+docker compose/Swarm 超级方便 不骗你。
Portainer is comprised of two elements, the Portainer Server, and the Portainer Agent. Both elements run as lightweight Docker containers on a Docker engine or within a Swarm cluster.Due to the nature of Docker,
docker run -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
如果报错
docker: Error response from daemon: driver failed programming external connectivity on endpoint happy_elgamal (060bc46847baed6621ead1b0f4592d02e5272d18a43de1595d18183f3f8ce754): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9000 -j DNAT --to-destination 172.17.0.3:9000 ! -i docker0: iptables: No chain/target/match by that name.
需要把本机iptables规则清一下
Screenshot from 2019-08-02 10-41-28.pngsudo iptables -t filter -F 删除所有rules
sudo iptables -t filter -X 删除所有chains
systemctl restart docker 重启docker 服务
关于edge compute的使用
https://www.portainer.io/2019/07/portainer-edge-agent/
https://downloads.portainer.io/edge_agent_guide.pdf
关于只集成了Swarm 没集成K8s的说明, 说是大概计划在2019
https://www.portainer.io/2019/07/portainer-kubernetes/
网友评论