docker拉取镜像提示 remote trust data does not exist for xxxxxx

1、How can I be sure that I am pulling a trusted image from docker

2、docker: you are not authorized to perform this operation: server returned 401.



以上两个问题可以试试以下解决办法

DOCKER_CONTENT_TRUST=false

docker拉取镜像提示 remote trust data does not exist for xxxxxx_第1张图片

本人是使用jenkins部署自己的项目到docker容器出现的这个错误,

  • 解决办法
    注意在制作镜像之前设置不需要上传秘钥,如果你们在执行遇到这个问题,可以试着在拉取、推送该镜像之前进行操作
#不需要上传秘钥
DOCKER_CONTENT_TRUST=false
#制作dockerfile镜像
docker build -f Dockerfile  -t ruoyi-admin .
#run
docker run --name ruoyi-admin -d -p  80:80 --network=host ruoyi-admin

3、Error: remote trust data does not exist for docker.io/nacos/nacos-server: notary.docker.io does not have trust data for docker.io/nacos/nacos-server

4、Error: remote trust data does not exist for docker.io/seataio/seata-server: notary.docker.io does not have trust data for docker.io/seataio/seata-server

docker拉取镜像提示 remote trust data does not exist for xxxxxx_第2张图片
说明添加
DOCKER_CONTENT_TRUST=true/false docker pull xxx
本人解决的思路来此stackoverflow也可以参考

核心配置DOCKER_CONTENT_TRUST有关改配置的详细说明

docker官网说明

https://docs.docker.com/engine/security/trust/#signing-images-with-docker-content-trust
自动生成的密钥会保存在你的本地服务器上

docker拉取镜像提示 remote trust data does not exist for xxxxxx_第3张图片

你可能感兴趣的:(docker,容器,运维)