diff --git a/Prepare-base-image-for-the-private-registry.md b/Prepare-base-image-for-the-private-registry.md new file mode 100644 index 0000000..32b2f97 --- /dev/null +++ b/Prepare-base-image-for-the-private-registry.md @@ -0,0 +1,16 @@ +On a server that is not blocked by GFW: + +``` +docker pull gitea/runner-images:ubuntu-latest +docker tag gitea/runner-images:ubuntu-latest focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest +docker save focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest | gzip > image.tar.gz +``` + +Then send `image.tar.gz` to the server you want. However, `scp` is very slow, it is better to download that file from SJTU server. + +On the SJTU server: + +``` +docker image load --input image.tar.gz +docker push focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest +``` \ No newline at end of file