Sign inSign up

hoshihaya/aws-cli-v1

By hoshihaya

•Updated almost 3 years ago

Image
0

137

hoshihaya/aws-cli-v1 repository overview

⁠docker compose run

  • docker-compose.yml
$ cat docker-compose.yml
version: '3'
services:
  aws:
    image: hoshihaya/aws-cli-v1
    volumes:
      - .:/app
    tty: true
    environment:
      AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
      AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
      AWS_DEFAULT_REGION: ap-northeast-1
  • docker compose run
# default `aws --version`
$ docker compose run --rm aws
aws-cli/1.29.66 Python/3.7.17 Linux/4.14.268-205.500.amzn2.x86_64 botocore/1.31.66
$ docker compose run --rm aws --version
aws-cli/1.29.66 Python/3.7.17 Linux/4.14.268-205.500.amzn2.x86_64 botocore/1.31.66
$ docker compose run --rm --entrypoint '/bin/bash' aws
root@4686a6ce9d8d:/# aws --version
aws-cli/1.29.66 Python/3.7.17 Linux/4.14.268-205.500.amzn2.x86_64 botocore/1.31.66

⁠docker run

# default `aws --version`
$ docker run --rm -it hoshihaya/aws-cli-v1
aws-cli/1.29.66 Python/3.7.17 Linux/4.14.268-205.500.amzn2.x86_64 botocore/1.31.66

$ docker run --rm -it hoshihaya/aws-cli-v1 --version
aws-cli/1.29.66 Python/3.7.17 Linux/4.14.268-205.500.amzn2.x86_64 botocore/1.31.66
$ docker run --rm -it --entrypoint /bin/bash hoshihaya/aws-cli-v1
root@ef208cdde67d:/# aws --version
aws-cli/1.29.66 Python/3.7.17 Linux/4.14.268-205.500.amzn2.x86_64 botocore/1.31.66

Tag summary

Content type

Image

Digest

sha256:e816a79c1…

Size

417 MB

Last updated

almost 3 years ago

docker pull hoshihaya/aws-cli-v1