Add sudo again to collectd Dockerfile
This commit is contained in:
@@ -29,6 +29,9 @@ ENV PATH="$PATH:/opt/pmt/bin"
|
|||||||
RUN apt -y remove make g++ python3-dev python3-pybind11 cmake
|
RUN apt -y remove make g++ python3-dev python3-pybind11 cmake
|
||||||
RUN apt autoremove -y
|
RUN apt autoremove -y
|
||||||
|
|
||||||
RUN useradd collectd
|
RUN apt -y install sudo
|
||||||
|
RUN adduser collectd
|
||||||
|
RUN usermod -aG sudo collectd
|
||||||
|
RUN echo 'collectd ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/collectd
|
||||||
|
|
||||||
CMD ["/usr/sbin/collectd", "-f"]
|
CMD ["/usr/sbin/collectd", "-f"]
|
||||||
|
|||||||
Reference in New Issue
Block a user