fix volume bug

This commit is contained in:
t3chn0m4g3 2015-08-07 22:32:15 +02:00
parent fb5adfaf51
commit 2c1d7ceae7
9 changed files with 30 additions and 30 deletions

View file

@ -46,7 +46,7 @@ for i in $myIMAGES
fi fi
sleep 0.1 sleep 0.1
done done
docker rm $(docker ps -aq) docker rm -v $(docker ps -aq)
for j in $myIMAGES for j in $myIMAGES
do do
service $j start service $j start

View file

@ -36,7 +36,7 @@ if [ $myUPTIME -gt 5 ];
fi fi
sleep 0.1 sleep 0.1
done done
docker rm $(docker ps -aq) docker rm -v $(docker ps -aq)
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
for i in $myIMAGES for i in $myIMAGES
do do

View file

@ -14,7 +14,7 @@ pre-start script
# Remove any existing dionaea containers # Remove any existing dionaea containers
myCID=$(docker ps -a | grep dionaea | awk '{ print $1 }') myCID=$(docker ps -a | grep dionaea | awk '{ print $1 }')
if [ "$myCID" != "" ]; if [ "$myCID" != "" ];
then docker rm $myCID; then docker rm -v $myCID;
fi fi
end script end script
script script

View file

@ -14,7 +14,7 @@ pre-start script
# Remove any existing elk containers # Remove any existing elk containers
myCID=$(docker ps -a | grep elk | awk '{ print $1 }') myCID=$(docker ps -a | grep elk | awk '{ print $1 }')
if [ "$myCID" != "" ]; if [ "$myCID" != "" ];
then docker rm $myCID; then docker rm -v $myCID;
fi fi
end script end script
script script

View file

@ -14,7 +14,7 @@ pre-start script
# Remove any existing ews containers # Remove any existing ews containers
myCID=$(docker ps -a | grep ews | awk '{ print $1 }') myCID=$(docker ps -a | grep ews | awk '{ print $1 }')
if [ "$myCID" != "" ]; if [ "$myCID" != "" ];
then docker rm $myCID; then docker rm -v $myCID;
fi fi
end script end script
script script

View file

@ -14,7 +14,7 @@ pre-start script
# Remove any existing glastopf containers # Remove any existing glastopf containers
myCID=$(docker ps -a | grep glastopf | awk '{ print $1 }') myCID=$(docker ps -a | grep glastopf | awk '{ print $1 }')
if [ "$myCID" != "" ]; if [ "$myCID" != "" ];
then docker rm $myCID; then docker rm -v $myCID;
fi fi
end script end script
script script

View file

@ -14,7 +14,7 @@ pre-start script
# Remove any existing honeytrap containers # Remove any existing honeytrap containers
myCID=$(docker ps -a | grep honeytrap | awk '{ print $1 }') myCID=$(docker ps -a | grep honeytrap | awk '{ print $1 }')
if [ "$myCID" != "" ]; if [ "$myCID" != "" ];
then docker rm $myCID; then docker rm -v $myCID;
fi fi
/sbin/iptables -w -A INPUT -p tcp --syn -m state --state NEW -m multiport ! --dports 21,22,42,80,135,443,445,1433,3306,5060,5061,64295,64296 -j NFQUEUE /sbin/iptables -w -A INPUT -p tcp --syn -m state --state NEW -m multiport ! --dports 21,22,42,80,135,443,445,1433,3306,5060,5061,64295,64296 -j NFQUEUE
end script end script

View file

@ -14,7 +14,7 @@ pre-start script
# Remove any existing kippo containers # Remove any existing kippo containers
myCID=$(docker ps -a | grep kippo | awk '{ print $1 }') myCID=$(docker ps -a | grep kippo | awk '{ print $1 }')
if [ "$myCID" != "" ]; if [ "$myCID" != "" ];
then docker rm $myCID; then docker rm -v $myCID;
fi fi
end script end script
script script

View file

@ -14,7 +14,7 @@ pre-start script
# Remove any existing suricata containers # Remove any existing suricata containers
myCID=$(docker ps -a | grep suricata | awk '{ print $1 }') myCID=$(docker ps -a | grep suricata | awk '{ print $1 }')
if [ "$myCID" != "" ]; if [ "$myCID" != "" ];
then docker rm $myCID; then docker rm -v $myCID;
fi fi
myIF=$(route | grep default | awk '{ print $8 }') myIF=$(route | grep default | awk '{ print $8 }')
/sbin/ethtool --offload $myIF rx off tx off /sbin/ethtool --offload $myIF rx off tx off