changed labels to key-value format

This commit is contained in:
sose 2021-06-13 23:42:53 +00:00
parent ffca457b50
commit 20a790f69c
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 \

View File

@ -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