<p><pre> <code>root@HOME-NAS:~# docker push registry.domain.com:4000/xzxiaoshan/frps:v0.27.0
The push refers to a repository [registry.domain.com:4000/xzxiaoshan/frps]
An image does not exist locally with the tag: registry.domain.com:4000/xzxiaoshan/frps
root@HOME-NAS:~#
</code></pre></p>
由于默认的镜像仓库是,/frps:v0.27.0相当于.io//frps:v0.27.0,所以如果要将镜像推送到私服仓库,需要更改镜像标签。
<p><pre> <code>docker tag xzxiaoshan/frps:v0.27.0 registry.domain.com:4000/xzxiaoshan/frps:v0.27.0
</code></pre></p>
然后再次执行推送命令。 以下是我的测试示例:
<p><pre> <code>root@HOME-NAS:~# docker tag xzxiaoshan/frps:v0.27.0 registry.domain.com:4000/xzxiaoshan/frps:v0.27.0
root@HOME-NAS:~# docker push registry.domain.com:4000/xzxiaoshan/frps:v0.27.0
The push refers to a repository [registry.domain.com:4000/xzxiaoshan/frps]
1cfcb4906068: Pushed
767f936afb51: Pushed
release-0.24.1: digest: sha256:99eececd9cf374c8082f951b7989cdc5fd618d943384fd8973f4b68c54cf54b4 size: 739
root@HOME-NAS:~#
</code></pre></p>
3.从私服下载镜像的命令是