hyper attach nginx container failed, op logs:
# cat hyper-svc.json
{
"containers": [
{
"image": "nginx",
"name": "nginx"
}
],
"services": [
{
"serviceip": "10.254.0.24",
"serviceport": 2834,
"protocol": "TCP",
"hosts": [
{
"hostip":"192.168.23.2",
"hostport":2345
}
]
}
],
"id": "nginx",
"dns": ["8.8.8.8"],
"tty": true,
"type": "pod"
}
[root@ostack ~]# hyper create hyper-svc.json
Pod ID is pod-EhIvzPlPGd
[root@ostack ~]# hyper start pod-EhIvzPlPGd
Successfully started the Pod(pod-EhIvzPlPGd)
[root@ostack ~]# hyper list
POD ID POD Name VM name Status
pod-EhIvzPlPGd nginx vm-IzalXhUSvt running
[root@ostack ~]# hyper list container
Container ID Name POD ID Status
2e6d8410a1cc09721d46014c37b1e831bc9e08a970526ce4d60c7e2ef486984d nginx-service-discovery pod-EhIvzPlPGd running
213eb33aa90f64ff2d8034b511ebdf5360bb4b94ae1c09c2b08b4b6ca9477606 nginx pod-EhIvzPlPGd running
[root@ostack ~]# hyper attach 213eb33aa90f64ff2d8034b511ebdf5360bb4b94ae1c09c2b08b4b6ca9477606
^CSuccessfully attached to pod(213eb33aa90f64ff2d8034b511ebdf5360bb4b94ae1c09c2b08b4b6ca9477606)
End of CmdExec(), Waiting for hijack to finish.
[root@ostack ~]# hyper list
POD ID POD Name VM name Status
pod-EhIvzPlPGd nginx succeeded
logs of hyperd