mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
docker, remove unused networks on startup
This commit is contained in:
@ -17,6 +17,7 @@ ExecStartPre=-/bin/bash -c '/opt/tpot/bin/clean.sh on'
|
||||
# Remove old containers, images and volumes
|
||||
ExecStartPre=-/usr/bin/docker-compose -f /opt/tpot/etc/tpot.yml down -v
|
||||
ExecStartPre=-/usr/bin/docker-compose -f /opt/tpot/etc/tpot.yml rm -v
|
||||
ExecStartPre=-/bin/bash -c 'docker network rm $(docker network ls -q)'
|
||||
ExecStartPre=-/bin/bash -c 'docker volume rm $(docker volume ls -q)'
|
||||
ExecStartPre=-/bin/bash -c 'docker rm -v $(docker ps -aq)'
|
||||
ExecStartPre=-/bin/bash -c 'docker rmi $(docker images | grep "<none>" | awk \'{print $3}\')'
|
||||
|
Reference in New Issue
Block a user