File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -117,21 +117,16 @@ echo "Verifying the image in the local registry..."
117117catalog=$( curl -s -u user:password -X GET http://localhost:5000/v2/_catalog)
118118echo " 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
127122if ./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."
129124else
130125 echo " Error: basic-docker failed to run the image." >&2
131126 exit 1
132127fi
133128
134- # Step 6 : Check logs for authentication
129+ # Step 5 : Check logs for authentication
135130echo " Checking logs for authentication..."
136131docker logs registry | grep " user"
137132
You can’t perform that action at this time.
0 commit comments