This is an automated email from the ASF dual-hosted git repository.

Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d8924f9e4 [fix] fix Dockerfile directory creation error (#4143)
9d8924f9e4 is described below

commit 9d8924f9e4c649d363fe2fbaf3c1375676e6ffaa
Author: Duansg <[email protected]>
AuthorDate: Fri May 22 15:42:06 2026 +0800

    [fix] fix Dockerfile directory creation error (#4143)
---
 script/docker/collector/Dockerfile | 2 +-
 script/docker/server/Dockerfile    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/docker/collector/Dockerfile 
b/script/docker/collector/Dockerfile
index 5a33eb5b39..13d8f66157 100644
--- a/script/docker/collector/Dockerfile
+++ b/script/docker/collector/Dockerfile
@@ -24,7 +24,7 @@ ARG VERSION
 # Install SSH
 RUN  sed -i 's#http://#https://#g' /etc/apt/sources.list.d/ubuntu.sources && \
     apt-get update && apt-get install -y openssh-server
-RUN mkdir /var/run/sshd
+RUN mkdir -p /var/run/sshd
 
 ADD apache-hertzbeat-collector-${VERSION}-bin.tar.gz /opt/
 
diff --git a/script/docker/server/Dockerfile b/script/docker/server/Dockerfile
index 6427e6300b..d30ce13ac6 100644
--- a/script/docker/server/Dockerfile
+++ b/script/docker/server/Dockerfile
@@ -22,7 +22,7 @@ MAINTAINER Apache HertzBeat "[email protected]"
 # Install SSH And Locales
 RUN  sed -i 's#http://#https://#g' /etc/apt/sources.list.d/ubuntu.sources && \
      apt-get update && apt-get install -y openssh-server && apt-get install -y 
locales
-RUN mkdir /var/run/sshd
+RUN mkdir -p /var/run/sshd
 # Build zh_CN en_US locale resource package
 RUN localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
 RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to