docker login 出错 Error response from daemon

在自己的Linux服务器尝试登陆docker出错

输入完用户密码之后错误如下:

解决方案

1.打开daemo文件:

vim/etc/docker/daemon.json

2.常用的国内Docker 镜像源地址

网易云 Docker 镜像:http://hub-mirror.c.163.com

百度云 Docker 镜像:https://mirror.baidubce.com

腾讯云 Docker 镜像:https://ccr.ccs.tencentyun.com

Docker Proxy 镜像:https://dockerproxy.com

阿里云 Docker 镜像(需要使用阿里账号自行创建专属镜像仓库):https://cr.console.aliyun.com/

DaoCloud Docker 镜像(配置文档):http://f1361db2.m.daocloud.io

配置流程

powershell 复制代码
[root@localhost docker]# cd /etc/docker

[root@localhost docker]# touch daemon.json

[root@localhost docker]# vim daemon.json
# 在daemon.json文件的registry-mirrors列表中,添加/修改国内的镜像源地址
{
  "registry-mirrors": [
    "https://docker.m.daocloud.io",
    "https://registry.docker-cn.com",
    "https://quay.mirrors.ustc.edu.cn",
    "https://hub-mirror.c.163.com/",
    "https://dockerhub.icu"
  ]
}

3.重启docker 服务

powershell 复制代码
systemctl daemon-reload
systemctl restart docker

搞定!!

相关推荐
思茂信息36 分钟前
CST软件如何进行参数化扫描?
运维·开发语言·javascript·windows·ecmascript·软件工程·软件需求
计算机安禾1 小时前
【Linux从入门到精通】第31篇:防火墙漫谈——iptables与firewalld防护指南
linux·运维·php
下一页盛夏花开1 小时前
ubuntu 20中安装QT以后出现红色空心断点
linux·运维·ubuntu
Nice_Fold2 小时前
Kubernetes DaemonSet、StatefulSet与Service(自用笔记)
笔记·容器·kubernetes
sxgzzn4 小时前
光伏数智化综合平台:让光伏电站运维更智能、更高效
运维
乌托邦的逃亡者5 小时前
Linux中如何检测IP冲突
linux·运维·tcp/ip
一曦的后花园5 小时前
linux搭建promethes并对接node-exporter指标
linux·运维·服务器
乌托邦的逃亡者6 小时前
CentOS/Openeuler主机中,为一个网卡设置多个IP地址
linux·运维·网络·tcp/ip·centos
拾贰_C6 小时前
【OpenClaw | openai | QQ】 配置QQ qot机器人
运维·人工智能·ubuntu·面试·prompt