Update kata install
This commit is contained in:
parent
f1a0b9fa22
commit
4c509eabbd
|
@ -26,7 +26,7 @@ mem=$(sed -E 's/^MemTotal: +([0-9]+) kB/\1/p;d' < /proc/meminfo)
|
||||||
mempercore=$(((mem/1024-4096)/cores))
|
mempercore=$(((mem/1024-4096)/cores))
|
||||||
|
|
||||||
# install kata containers
|
# install kata containers
|
||||||
cid=$(docker run --runtime=runc -v /opt/kata:/opt/kata -v /var/run/dbus:/var/run/dbus -v /run/systemd:/run/systemd -v /etc/docker:/etc/docker -it katadocker/kata-deploy kata-deploy-docker install)
|
cid=$(docker run -d --runtime=runc -v /opt/kata:/opt/kata -v /var/run/dbus:/var/run/dbus -v /run/systemd:/run/systemd -v /etc/docker:/etc/docker -it katadocker/kata-deploy kata-deploy-docker install)
|
||||||
# wait for finish
|
# wait for finish
|
||||||
while [ "$(docker container inspect -f '{{.State.Running}}' "$cid")" == "true" ]; do
|
while [ "$(docker container inspect -f '{{.State.Running}}' "$cid")" == "true" ]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user