Using amazon-cli with docker-compose file is causing an error. When we run docker-compose up in the gitbash it tries to bring the container up and then fails by saying below error
I'm just pulling the image and bringing the container up, then why does it think i'm trying to run some commands and instead says to use "aws --help". Can anyone please check and comment ?
version: "3.8"
services:
amazoncli:
image: amazon/aws-cli
container_name: aws_cli
ports:
- "127.0.0.1:7899:7899"
environment:
- AWS_ACCESS_KEY_ID=
- AWS_SECRET_ACCESS_KEY=
networks:
ce_network:
aliases:
- ls.amazon.cli
volumes:
- C:/Users/raop/.aws:/root/.aws:ro