Skip to content

Commit 95e4952

Browse files
committed
use ./basic-docker run only
1 parent 1641c9e commit 95e4952

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

verify.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,16 @@ echo "Verifying the image in the local registry..."
117117
catalog=$(curl -s -u user:password -X GET http://localhost:5000/v2/_catalog)
118118
echo "Registry catalog: $catalog"
119119

120-
# Step 4: Use basic-docker to pull the image from the local registry
121-
if ! ./basic-docker pull user:password@localhost:5000/alpine; then
122-
echo "Error: basic-docker failed to pull the image from the local registry." >&2
123-
exit 1
124-
fi
125120

126-
# Step 5: Use basic-docker to run the image
121+
# Step 4: Use basic-docker to run the image
127122
if ./basic-docker run user:password@localhost:5000/alpine /bin/sh -c "echo Hello from authenticated local registry"; then
128123
echo "basic-docker successfully pulled and ran the image."
129124
else
130125
echo "Error: basic-docker failed to run the image." >&2
131126
exit 1
132127
fi
133128

134-
# Step 6: Check logs for authentication
129+
# Step 5: Check logs for authentication
135130
echo "Checking logs for authentication..."
136131
docker logs registry | grep "user"
137132

0 commit comments

Comments
 (0)