Docker安装Memgraph Platform遇"unauthorized: authentication required"错误求助
问题重现
单独安装Memgraph镜像可正常运行:
newus@song-wks:~# docker run -p 7687:7687 -p 7444:7444 --name memgraph memgraph/memgraph Unable to find image 'memgraph/memgraph:latest' locally latest: Pulling from memgraph/memgraph 2f088d622efd: Pull complete f53f9bd66fc3: Pull complete C0e75b7781e7: Pull complete 489cd6275771: Pull complete 4737ee95d849: Pull complete 4f4fb700ef54: Pull complete Digest: sha256:3f5f2ac082ef26cf52ab2dcabd91beeca432de2b0224f7a3dc50e397c7b2e8e8 Status: Downloaded newer image for memgraph/memgraph:latest You are running Memgraph V2.12.1 To get started with Memgraph, visit https://memgr.ph/start
但安装Memgraph Platform时出现认证错误:
newus@song-wks:~# docker run -p 7687:7687 -p 7444:7444 -p 3000:3000 --name memgraph memgraph/memgraph-platform:latest Unable to find image 'memgraph/memgraph-platform:latest' locally latest: Pulling from memgraph/memgraph-platform dlda99c2f148: Pull complete 3bfd201ccbe3: Extracting [==> ] 11.14MB/262.7MB 7bbf5c5d6f1d: Download complete db2413e75880: Download complete 2bdebd490492: Download complete 72e1723eb8c3: Download complete 2fd818cd14c9: Download complete 35cbdbc942c7: Download complete 503a2dbe39f2: Download complete d00638a09bd1: Downloading [====> ] 87.88MB/982.4MB 01eadfae4280: Download complete 7df3818bc0d9: Download complete 38705fe31799: Download complete 69d6240e3dc3: Download complete e73adb9fe671: Download complete 3a32a199619a: Download complete 3721315858cd: Downloading [=================> ] 4.33MB/12.4MB 4f4fb700ef54: Downloading docker: unauthorized: authentication required. See 'docker run --help'. newus@song-wks:~#
解决方案
登录Docker Hub:尽管Memgraph Platform镜像为公开镜像,但Docker Hub的匿名拉取可能存在限制,或本地Docker会话未正确认证。执行以下命令登录:
docker login输入Docker Hub用户名和密码后,重新尝试拉取镜像。
指定具体版本号:避免使用
latest标签,改用与成功运行的Memgraph一致的版本(如2.12.1):docker run -p 7687:7687 -p 7444:7444 -p 3000:3000 --name memgraph memgraph/memgraph-platform:2.12.1清理Docker缓存与无用资源:本地缓存的镜像元数据可能存在异常,执行清理命令后重新拉取:
docker system prune -a确认清理后,再次运行Memgraph Platform的启动命令。
检查网络环境:若处于代理网络下,确保Docker代理配置正确;尝试切换至非代理网络,排除网络访问限制导致的认证错误。
内容的提问来源于stack exchange,提问作者Taja Jan
相关产品推荐
相关产品推荐

