简体   繁体   English

运行 kompose up 时访问被拒绝错误

[英]Access Denied error when running kompose up

I installed kompose using brew.我使用 brew 安装了kompose

When I run kompose up I get当我运行kompose up我得到

ERRO Unable to push image 'tolicodes/tolicodes.com:latest' to registry 'docker.io'. Error: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

my ~/.docker/config.json looks like:我的~/.docker/config.json看起来像:

{
    "auths": {
        "https://index.docker.io/v1/": {}
    },
    "HttpHeaders": {
        "User-Agent": "Docker-Client/19.03.8 (darwin)"
    },
    "credsStore": "desktop",
    "experimental": "disabled",
    "stackOrchestrator": "swarm"
}

My docker-compose.yml我的docker-compose.yml

version: "3.4"
services:
  frontend-dev:
    build:
      context: .
      target: dev
    ports:
      - "3000:3000"
    volumes:
      - .:/app
      - /app/node_modules
    stdin_open: true
  frontend:
    build:
      context: .
      target: prod
    ports:
      - "80:80"
    image: tolicodes/tolicodes.com

I've successfully run docker login我已经成功运行docker login

I had to add the base64 encoded username/password to the config我必须将 base64 编码的用户名/密码添加到配置中

echo -n 'username:password'  | base64

In ~/.docker/config.json~/.docker/config.json

"auths": {
    "https://index.docker.io/v1/": {
      "auth": "<THE OUTPUT>"
    }
  },

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误无法将图像'library/web:latest'推送到注册表'docker.io'。 错误:被拒绝:请求的资源访问被拒绝 - Kompose up - ERROR Unable to push image 'library/web:latest' to registry 'docker.io'. Error: denied: requested access to the resource is denied - Kompose up 在docker中运行MySQL时出现“访问被拒绝”错误 - Getting “Access Denied” error in MySQL when running it in docker 在 Kube.netes 中运行 Mysql 时访问被拒绝 - Access denied when running Mysql in Kubernetes PermissionError: [WinError 5] Access Denied: [4776] 运行 docker-compose up 时无法执行脚本 docker-compose - PermissionError: [WinError 5] Access Denied: [4776] Failed to execute script docker-compose when running docker-compose up 在Docker容器上运行phinx命令时访问被拒绝 - Access denied when running phinx command on Docker container Gitlab 错误消息:远程:HTTP 基本:访问被拒绝致命:运行 npm 安装时身份验证失败 - Gitlab error message: remote: HTTP Basic: Access denied fatal: Authentication failed when running npm install on docker-compose build 运行 Artisan 命令时记录目录权限被拒绝错误 - Logs directory permission denied error when running Artisan commands 将 Go 服务器作为 Docker 容器运行时出现权限被拒绝错误 - Permission denied error when running Go server as Docker container 使用 rust 二进制文件运行 docker 映像时出现权限被拒绝错误 - Permission denied error when running docker image with rust binary 尝试正式运行Docker时,运行&#39;docker-compose up&#39;引发权限被拒绝 - Running 'docker-compose up' throws permission denied when trying official samaple of Docker
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM