Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes and improvements #2

Merged
merged 3 commits into from
Jun 7, 2022
Merged

Fixes and improvements #2

merged 3 commits into from
Jun 7, 2022

Conversation

kernelgurumeditation
Copy link
Collaborator

Please review and merge if ok

@@ -59,7 +60,7 @@ while [ 1 ]; do
RUNNING=$(docker inspect --format='{{.State.Running}}' globalping-probe)

if [ "$RUNNING" != "true" ]; then
/usr/bin/docker run -d --network host --restart=always --name globalping-probe ghcr.io/jsdelivr/globalping-probe:latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is wrong. ghcr.io/jsdelivr/globalping-probe is the correct registry we use. I dont think jsdelivr/globalping-probe even exists.

Also are you sure you dont want to run in detached mode?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the detached mode yep, it was a typo...

Regarding the registry name, that's referring to the local registry that resides in RAM, not to the one located in the exterior

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it's a regular docker command. Won't it assume by default it's pointing to docker hub for the repo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but the way the container image is captured(downloaded+compressed), the server name is dropped because the image will be "local."

And when the image is loaded in RAM, doesn't contain the server name portion, and because of that, the docker command is that runs that image as a container doesn't refer to the image with the server name

PS: The container update process uses the full name(with the server) of course

@jimaek jimaek merged commit 974614a into jsdelivr:master Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants