Я установил kompose
, используя brew.
Когда я запускаю 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
мой ~/.docker/config.json
выглядит так:
{
"auths": {
"https://index.docker.io/v1/": {}
},
"HttpHeaders": {
"User-Agent": "Docker-Client/19.03.8 (darwin)"
},
"credsStore": "desktop",
"experimental": "disabled",
"stackOrchestrator": "swarm"
}
Мой 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
Я успешно запустил docker login