changed labels to key-value format
This commit is contained in:
parent
ffca457b50
commit
20a790f69c
|
@ -45,7 +45,7 @@ docker build \
|
|||
--build-arg INFO_PORT=$info_port \
|
||||
--build-arg LOG_PORT=$log_port \
|
||||
--build-arg SSHD_PORT=$user_sshd_port \
|
||||
--label "SLBR User Container" \
|
||||
--label description="SLBR User Container" \
|
||||
./image
|
||||
|
||||
rm image/pubkey
|
||||
|
|
2
reset.sh
2
reset.sh
|
@ -4,7 +4,7 @@ num_challenges="$(
|
|||
| cut -f1 -d ' '
|
||||
)"
|
||||
docker ps \
|
||||
-f label="SLBR User Container" \
|
||||
-f label="description=SLBR User Container" \
|
||||
--format "{{.ID}}" \
|
||||
| xargs docker rm -f
|
||||
docker images -a \
|
||||
|
|
|
@ -69,7 +69,7 @@ handle_packet() {
|
|||
echo "$address HAS WON THE GAME!!!" >> $LOG
|
||||
sleep 5
|
||||
echo "Killing all continers..." >> $LOG
|
||||
docker ps -aq --filter label="SLBR User Container" | xargs docker rm -f
|
||||
docker ps -aq --filter label="description=SLBR User Container" | xargs docker rm -f
|
||||
exit
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue