add openvswitch user for OVS to make it possible to run non-root mode

Change-Id: Ia065b9289c5cc844641f0a869ff37a5339c7c43f
This commit is contained in:
Yaguang Tang 2025-01-18 23:24:04 +08:00
parent c899f6b6c1
commit 2fc8c49640
2 changed files with 6 additions and 2 deletions

@ -9,4 +9,6 @@ RUN chmod +x /tini
RUN set -ex && \
apt-get update && \
apt-get install -y openvswitch-switch && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
useradd -u 42424 openvswitch && \
chown -R openvswitch:openvswitch /var/lib/openvswitch /etc/openvswitch

@ -30,4 +30,6 @@ RUN set -ex && \
/var/lib/apt/lists/* \
/var/log/* \
/tmp/* \
/var/tmp/*
/var/tmp/* && \
useradd -u 42424 openvswitch && \
chown -R openvswitch:openvswitch /var/lib/openvswitch /etc/openvswitch