export DIR_AWS_PROFILE=${HOME}/.aws
export KUBECONFIG=${HOME}/.kube/config
touch ${KUBECONFIG}
docker run --rm -it -e http_proxy=${http_proxy} -e https_proxy=${http_proxy} \
-v ${DIR_AWS_PROFILE}:/root/.aws \
-v ${KUBECONFIG}:/root/.kube/config \
-v /var/run/docker.sock:/var/run/docker.sock \
itaru2622/aws-cli:bullseye /bin/bash
# AWS profile is needed for aws command, keep and share it with host.
# docker.socket is needed for ECR, to push docker image from local.
# KUBECONFIG is needed for EKS, keep and share it with host.
-
Notifications
You must be signed in to change notification settings - Fork 0
itaru2622/docker-aws-cli
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|