---
title: 运行hook脚本
description: "在所有工作节点运行hook脚本。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/armnative15/kunpengcpsvideo_20_0090.html
sourcePath: /source/zh/kunpengboostkithistory/2530/armnative15/kunpengcpsvideo_20_0090.html
indexId: 502afdf90ec33b645734b94aa1ab8874a2dfc50cd4a567838580f5e7a0aa317879
---
# 运行hook脚本

在所有工作节点运行hook脚本。

1. 请参见视频流引擎获取DemoVideoEngine.tar.gz软件包，获取后将软件包上传至服务器的“/home/k8s”目录。
2. 将“/home/k8s/k8s/script”目录下的oci-device-hook.sh脚本拷贝到“/usr/local/sbin/”目录。
  1 2 cd /home/k8s/k8s/script cp oci-device-hook.sh /usr/local/sbin/

3. 更改Containerd配置，将部署道客设备插件镜像新增的容器运行时改成“/usr/local/sbin/oci-device-hook.sh”。
  1 sed -i 's|BinaryName = "/usr/bin/va-container-runtime"|BinaryName ="/usr/local/sbin/oci-device-hook.sh"|g' /etc/containerd/config.toml

4. 重启Containerd。
  1 systemctl restart containerd
