File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ INFO "Starting \"$NAME\" from \"$FILE\""
58
58
trap ' limactl delete -f $NAME' EXIT
59
59
set -x
60
60
if ! limactl start --tty=false " $FILE " ; then
61
- ERROR " Failed to start \" $NAME \" "
62
- tail " $HOME /.lima/${NAME} " /* .log
63
- exit 1
61
+ ERROR " Failed to start \" $NAME \" "
62
+ tail " $HOME /.lima/${NAME} " /* .log
63
+ exit 1
64
64
fi
65
65
66
66
limactl shell " $NAME " uname -a
@@ -102,8 +102,10 @@ if [[ -n "${CHECKS["containerd-user"]}" ]]; then
102
102
INFO " Run a nginx container with port forwarding 127.0.0.1:8080"
103
103
set -x
104
104
limactl shell " $NAME " nerdctl info
105
- limactl shell " $NAME " sh -ec " nerdctl pull nginx:alpine >/dev/null"
106
- limactl shell " $NAME " nerdctl run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
105
+ # Use GHCR to avoid hitting Docker Hub rate limit
106
+ nginx_image=" ghcr.io/stargz-containers/nginx:1.19-alpine-org"
107
+ limactl shell " $NAME " sh -ec " nerdctl pull ${nginx_image} >/dev/null"
108
+ limactl shell " $NAME " nerdctl run -d --name nginx -p 127.0.0.1:8080:80 ${nginx_image}
107
109
108
110
timeout 3m bash -euxc " until curl -f --retry 30 --retry-connrefused http://127.0.0.1:8080; do sleep 3; done"
109
111
You can’t perform that action at this time.
0 commit comments