hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
828 stars 129 forks source link

Create symlink before starting shim #487

Closed WeiZhang555 closed 7 years ago

WeiZhang555 commented 7 years ago

runv shim will try to connect to containerd socket for each container, sometimes when the shim is forked, the related namespace socket hasn't been created yet, which makes shim failed to start.

This commit will ensure that when shim is started, the namespace socket file is always prepared.

Signed-off-by: Zhang Wei zhangwei555@huawei.com

WeiZhang555 commented 7 years ago

@laijs Updated.

laijs commented 7 years ago

LGTM