FATA Unable to load yaml/json file for version parsing: open docker-compose.yml: permission denied #1172
Description
Goom Morning
I am trying to do a kompose (kompose -f docker-compose.yml up) to convert this docker-compose.yml file:
version: '3'
services:
angular:
image: nginx:alpine
ports:
- "4200:80"
volumes:
- ./front/dist:/usr/share/nginx/html
postgres:
image: postgres:11
container_name: portpostgres
ports:
- "5432:5432"
environment:
- LC_ALL=C.UTF-8
- POSTGRES_PORT=5432
volumes:
- ./bbdd/import-postgres.sql:/docker-entrypoint-initdb.d/import-postgres.sql
portabcjetty:
image: jettyabc
container_name: jettyabc
build: ./abc
ports:
- "8080:8080"
portloginjetty:
image: jettylogin
container_name: jettylogin
build: ./login
ports:
- "8081:8080"
The error that it is throwing is:
FATA Unable to load yaml/json file for version parsing: open docker-compose.yml: permission denied
I make a chown -R root:root ./dockerabcproy/ and a chmod -R 664 ./dockerabcproy
drw-rw-r-- 2 root root 4096 oct 11 06:31 dockerabcproy
I'm pretty lost and I don't know what to do. Please, Tell me what more information you need.
Thank you!