Add Prepare base image for the private registry
parent
e027f98e8c
commit
e6bd3039d2
16
Prepare-base-image-for-the-private-registry.md
Normal file
16
Prepare-base-image-for-the-private-registry.md
Normal file
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue
Block a user