{"user":"amazon","name":"aws-cli","namespace":"amazon","repository_type":"image","status":1,"status_description":"active","description":"Universal Command Line Interface for Amazon Web Services","is_private":false,"is_automated":false,"star_count":324,"pull_count":1579585927,"last_updated":"2026-11-30T06:53:36.851993Z","last_modified":"2024-10-16T13:48:34.145251Z","date_registered":"2020-03-27T01:12:58.649817Z","collaborator_count":0,"affiliation":null,"hub_user":"amazon","has_starred":false,"full_description":"# Amazon Web Services Command Line Interface (AWS CLI)\nThis is a Docker image for the [AWS CLI](https://aws.amazon.com/cli/). It is\na unified command line tool to interact with AWS services and manage your\nAWS resources.\n\n**NOTE:** This image is only supported for the AWS CLI v2\n\n## Tags\nThere are two sets of supported tags:\n\n* `latest` - This corresponds to the latest released version of the AWS CLI.\n  There are no backwards compatibility guarantees in relying on the `latest`\n  tag. See [notes on backwards compatibility](#notes-on-interfaces-and-backwards-compatibility-of-docker-image)\n  for more information.\n\n* `\u003cmajor.minor.patch\u003e` - This corresponds to each released version of the AWS\n  CLI. For example to use version `2.0.6` of the AWS CLI, use the tag\n  `2.0.6`. These tags are immutable as they will only ever be\n  pushed to once upon release of a particular version of the AWS CLI.\n\n## Docker CLI usage\n\nThe AWS CLI can be executed from the Docker CLI with the `docker run` command:\n```bash\n$ docker run --rm -it amazon/aws-cli --version\n```\nThis command will print out the version of the AWS CLI being used in the\ncontainer. Note that the `aws` executable was not specified in the `docker run`\ncommand because the [entrypoint](https://docs.docker.com/engine/reference/builder/#entrypoint)\nfor the image is defined as the `aws` executable.\n\nFor any AWS CLI command, you can run its `help` command to get help information\nabout the command:\n```bash\n$ docker run --rm -it amazon/aws-cli help\n```\n\nIn order to run a command that makes an AWS API call, credentials and\nconfiguration may need to be shared from the host system to the container.\nAssuming credentials and configuration are being set in the\n`~/.aws/credentials` and `~/.aws/config` file on the host system,\nthey can be shared by mounting the `~/.aws` directory to the `/root/.aws`\ndirectory of the container:\n```bash\n$ docker run --rm -ti -v ~/.aws:/root/.aws amazon/aws-cli s3 ls\n```\n\nFor some AWS CLI v2 commands, you'll want to either read files from the host\nsystem in the container or write files from the container to the host system.\nThis can be accomplished by mounting to the container's `/aws` directory:\n```bash\n$ docker run --rm -ti -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli s3 cp s3://aws-cli-docker-demo/hello .\n```\nThe `/aws` directory is the working directory for the image and is reserved\nfor the user. See [notes on interfaces](#notes-on-interfaces-and-backwards-compatibility-of-docker-image)\nfor more information.\n\nIn order to shorten the length of `docker` commands, you can add the following\nalias:\n```bash\n$ alias aws='docker run --rm -ti -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli'\n```\nThis will allow you to run the AWS CLI v2 from within a Docker container as if\nit was installed on the host system:\n```bash\n$ aws --version\n```\n\n## Notes on interfaces and backwards compatibility of Docker image\n* The only tool supported on the image is the AWS CLI. Only the `aws`\n  executable should ever be directly executed. For example even though\n  `less` and `groff` are explicitly installed on the image, they should not be\n  executed directly outside of an AWS CLI command.\n\t \n* The `/aws` working directory is user controlled. The image will not\n  write to this directory, unless instructed by the user in running a AWS CLI\n  command.\n\t \n* There are no backwards compatibility guarantees in relying on the `latest`\n  tag. For example theoretically, any of the following changes could happen\n  between updates to `latest` tag:\n\t   \n  * A specific tool (e.g. `less` or `groff`) is removed from the image.\n\t \n  * The base image is updated (e.g. change from Amazon Linux to Alpine Linux)\n\t  \n  * A new major version of the AWS CLI is published (e.g. an AWS CLI v3)\n\t   \n* In order to guarantee backwards compatibility, users must pin to a specific\n  `\u003cmajor.minor.patch\u003e` tag as those tags are immutable; they will only ever\n  be pushed to once upon release of a particular version of the AWS CLI.\n\n\n## General AWS CLI usage\n\nFor information on general usage of the AWS CLI, please refer to the:\n\n* [AWS CLI user guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)\n\n* [AWS CLI reference guide](https://docs.aws.amazon.com/cli/latest/reference/)\n\n## Source code\nThe source code for the AWS CLI can be found at its\n[GitHub repository](https://github.com/aws/aws-cli/tree/v2). The Docker image\nis built using the [Linux exectuable installer](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html)\nfor the AWS CLI v2 and the following [`Dockerfile`](https://github.com/aws/aws-cli/tree/v2/docker/Dockerfile).\n\n## Feedback\nTo file any feature requests or report any issues related to this Docker image,\nplease open an issue on the [GitHub repository](https://github.com/aws/aws-cli)\nfor the AWS CLI.\n","permissions":{"read":true,"write":false,"admin":false},"media_types":["application/vnd.docker.container.image.v1+json","application/vnd.docker.distribution.manifest.list.v2+json"],"content_types":["image"],"categories":[{"name":"Developer tools","slug":"developer-tools"}],"immutable_tags_settings":{"enabled":false,"rules":[".*"]},"storage_size":155153985796,"source":null}