Open liusheng opened 4 years ago
write:packages
read:packages
delete:packages
docker login https://docker.pkg.github.com -u liusheng --password <YOUR_ACCESS_TOKEN>
docker tag liusheng2048/hadoop-aarch64:pre-build docker.pkg.github.com/liusheng/dockerfile/hadoop-aarch64:pre-build docker push docker.pkg.github.com/liusheng/dockerfile/hadoop-aarch64:pre-build
目前Github针对docker 镜像,建立了专门的仓库,和原来的package registry区分,并推荐迁移到新的docker 镜像域名ghcr.io,详见这里
ghcr.io
具体用法没有太大却别,只不过将镜像的tag变成push ghcr.io/OWNER/IMAGE_NAME:VERSION, 比起原来的更加简洁。
push ghcr.io/OWNER/IMAGE_NAME:VERSION
docker login ghcr.io -u liusheng --password <YOUR_ACCESS_TOKEN>
docker tag liusheng2048/hadoop-aarch64:pre-build ghcr.io/liusheng/hadoop-aarch64:pre-build docker push ghcr.io/liusheng/hadoop-aarch64:pre-build
1. Github侧准备工作
write:packages
read:packages
权限,看情况是否选择delete:packages
保存创建好的Token,这里要注意的是该Token一旦关闭页面就没法再拷贝了,除非重新生成一个。2. 登录并上传镜像到github
3. 更新(2020/10/19)
目前Github针对docker 镜像,建立了专门的仓库,和原来的package registry区分,并推荐迁移到新的docker 镜像域名
ghcr.io
,详见这里具体用法没有太大却别,只不过将镜像的tag变成
push ghcr.io/OWNER/IMAGE_NAME:VERSION
, 比起原来的更加简洁。