github codespaces推送镜像时unauthorized: access token has insufficient scopes 解决方法

最近有镜像构建的需求,于是就使用了github提供的这个codespace来构建docker镜像,但是在构建后进行镜像推送时提示 unauthorized: access token has insufficient scopes ,如下图

这个一看就知道是权限问题, 这里的access token has insufficient scopes是提示我们当前的访问令牌权限域不足。 github默认的docker镜像仓库是ghcr.io ,这个服务我没有开通, 我需要推送镜像到docker.io, 所以需要退出当前默认登录后重新登陆docker.io仓库。

bash 复制代码
docker logout
# 登录到docker.io仓库
docker login --username=tekintian  docker.io

注意,在codespaces里面使用docker login登录docker.io的时候必须要指定用户名,否则就会变成网页授权登录,而login.docker这个网页目前是用不了的!

相关推荐
moxiaoran57532 小时前
使用docker安装myql 8.0
运维·docker·容器
喵叔哟4 小时前
15.故障排查与调试
后端·docker·容器·服务发现
小康小小涵4 小时前
睿抗机器人大赛魔力元宝
python·ubuntu·gitee·github
梦帮科技5 小时前
第三十四篇:开源社区运营:GitHub Stars增长策略
开发语言·前端·爬虫·python·docker·架构·html
长安即是故里6 小时前
保姆级docker安装教程,含国内加速镜像地址
docker·docker安装教程·国内加速
QT 小鲜肉7 小时前
【Linux命令大全】002.文件传输之uucico命令(实操篇)
linux·运维·服务器·chrome·笔记·github
逛逛GitHub10 小时前
新挖掘了 3 个牛哄哄的 GitHub 教程库,有点意思啊。
github
原神启动110 小时前
Docker-compose一键部署设备管理平台 nginx+mysql+springboot
mysql·nginx·docker
tzhou6445211 小时前
Docker的CICD持续集成
ci/cd·docker·容器
oMcLin11 小时前
在RHEL 8系统上如何实现基于Docker的微服务架构,并进行自动化部署?
docker·微服务·架构