docker 使用calico网络,同网络容器不通,容器与物理机不通,求指教


virtualbox 运行了三台虚拟机,每台虚拟机环境如下:
ubuntu : 16.04
docker version:18.01.0-ce
calicoctl version: 1.6.3
quay.io/calico/node: v2.6.2

ip pool:
apiVersion: v1
kind: ipPool
metadata:
cidr: 172.32.0.0/16
spec:
ipip:
enabled: true
nat-outgoing: true
disabled: false


docker network :
docker network create --driver calico --ipam-driver  calico-ipam --subnet=172.32.0.0/16 net1


net1 profile
{
"kind": "profile",
"apiVersion": "v1",
"metadata": {
"name": "net1",
"tags": [
"net1"
]
},
"spec": {
"ingress": [
{
  "action": "allow",
  "source": {
    "tag": "net1"
  },
  "destination": {}
},
{
  "action": "allow",
  "source": {
    "nets": ["192.168.56.0/24"]
  },
  "destination": {}
}
],
"egress": [
{
  "action": "allow",
  "source": {},
  "destination": {}
}
]
}
已邀请:

要回复问题请先登录注册