The reason for this issue is that the aksusbd software needs to be started with the systemd daemon after installation,but Docker does not recommend starting the systemd process inside the container, and the official rockylinux image does not have the systemd image installed, My solution here is to manually create the "/run/systemd/system" directory before installing aksusbd. There will be warnings during the installation process but no errors. Then, when using the container, start aksusbd first and execute the required programs. My Dockerfile is as follows:
FROM centos:7.9.2009
RUN export DOCKER_RES_URL=http://172.16.31.68:17637 && \
rm -rf /etc/yum.repos.d/*.repo && \
curl -o /root/hasp.rpm $DOCKER_RES_URL/aksusbd-8.53-1.x86_64.rpm && \
curl -o /etc/yum.repos.d/CentOS-Base.repo $DOCKER_RES_URL/Centos-7.repo && \
curl -o /etc/yum.repos.d/epel.repo $DOCKER_RES_URL/epel-7.repo && \
mkdir -p /run/systemd/system && \
rpm -Uvh /root/hasp.rpm && rm -rf /root/hasp.rpm && \
yum clean all && rm -rf /var/cache/yum/*