mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 14:45:38 +00:00
delete all root process
This commit is contained in:
@ -80,5 +80,7 @@ COPY run.sh /usr/local/bin/run.sh
|
||||
RUN chmod +x /usr/local/bin/run.sh
|
||||
|
||||
VOLUME /cowrie/log /cowrie/dl /cowrie/custom
|
||||
|
||||
EXPOSE 2222
|
||||
CMD ["/sbin/tini","--","run.sh"]
|
||||
|
||||
CMD ["run.sh"]
|
||||
|
@ -15,4 +15,4 @@ mkdir -p /cowrie/log/tty
|
||||
cp -R /cowrie/custom/* /cowrie
|
||||
chown -R $UID:$GID /cowrie
|
||||
|
||||
su-exec $UID:$GID twistd -n -l /cowrie/log/cowrie.log cowrie
|
||||
exec su-exec $UID:$GID /sbin/tini -- twistd -n -l /cowrie/log/cowrie.log cowrie
|
||||
|
Reference in New Issue
Block a user