当前位置:   article > 正文

docker search遇到:Error response from daemon: Unexpected status code 401(已解决)

error response from daemon: unexpected status code 404

1、问题描述:

在尝试通过docker查询镜像时,报了401(大概是无权限,没有认证)

# 10018318 @ Mrli in ~ [10:57:19]
$ docker search elasticsearch
Error response from daemon: Unexpected status code 401
  • 1
  • 2
  • 3

经过一番查寻,定位到一个相似问题描述的文章:
https://forums.docker.com/t/error-response-from-daemon-unexpected-status-code-401/117194

大概意思就是目前是处于登录的状态,尝试去搜索时出现没有认证的提示

2、解决方式:

1、执行退出命令

# 10018318 @ Mrli in ~ [10:57:34] C:1
$ docker logout
Removing login credentials for https://index.docker.io/v1/
  • 1
  • 2
  • 3

2、在执行之前的搜索命令,搜索成功

# 10018318 @ Mrli in ~ [11:04:05]
$ docker search elasticsearch
NAME                                         DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
elasticsearch                                Elasticsearch is a powerful open source sear…   5303      [OK]
nshou/elasticsearch-kibana                   Elasticsearch-7.15.1 Kibana-7.15.1              132                  [OK]
mobz/elasticsearch-head                      elasticsearch-head front-end and standalone …   81
elastichq/elasticsearch-hq                   Official Docker image for ElasticHQ: Elastic…   77                   [OK]
itzg/elasticsearch                           Provides an easily configurable Elasticsearc…   71                   [OK]
elastic/elasticsearch                        The Elasticsearch Docker image maintained by…   56
taskrabbit/elasticsearch-dump                Import and export tools for elasticsearch       27                   [OK]
lmenezes/elasticsearch-kopf                  elasticsearch kopf                              18                   [OK]
barnybug/elasticsearch                       Latest Elasticsearch 1.7.2 and previous rele…   17                   [OK]
justwatch/elasticsearch_exporter             Elasticsearch stats exporter for Prometheus     17
blacktop/elasticsearch                       Alpine Linux based Elasticsearch Docker Image   16                   [OK]
esystemstech/elasticsearch                   Debian based Elasticsearch packing for Lifer…   15
monsantoco/elasticsearch                     ElasticSearch Docker image                      11                   [OK]
mesoscloud/elasticsearch                     [UNMAINTAINED] Elasticsearch                    9                    [OK]
centerforopenscience/elasticsearch           Elasticsearch                                   4                    [OK]
dtagdevsec/elasticsearch                     elasticsearch                                   4                    [OK]
barchart/elasticsearch-aws                   Elasticsearch AWS node                          3
thingswise/elasticsearch                     Elasticsearch + etcd2 peer discovery            1                    [OK]
axway/elasticsearch-docker-beat              "Beat" extension to read logs of containers …   1                    [OK]
jetstack/elasticsearch-pet                   An elasticsearch image for kubernetes PetSets   1                    [OK]
kuzzleio/elasticsearch                       Elasticsearch container based on Alpine Linu…   1                    [OK]
phenompeople/elasticsearch                   Elasticsearch is a powerful open source sear…   1                    [OK]
dsteinkopf/elasticsearch-ingest-attachment   elasticsearch + ingest-attachment to be used…   1                    [OK]
wreulicke/elasticsearch                      elasticsearch                                   0                    [OK]
travix/elasticsearch-kubernetes              To run ElasticSearch in kubernetes and expor…   0                    [OK]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

至于为什么登录时无法搜索还在求证中,若你有不同解答欢迎在下方评论区留言!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/429841
推荐阅读
相关标签
  

闽ICP备14008679号