Docker container with awscli and kubectl
500K+
Awscli is the Amazon web services command line interface.
Kubectl is the Kubernetes command line interface.
$ docker run -ti --rm bearengineer/awscli-kubectl
$ docker run -ti -e 'AWS_ACCESS_KEY_ID=********************' -e 'AWS_SECRET_ACCESS_KEY=****************************************' -v '/Users/bearengineer/.kube:/root/.kube' --rm bearengineer/awscli-kubectl kubectl get pods --all-namespaces
$ docker run -ti -v '/Users/bearengineer/.aws:/root/.aws' -v '/Users/bearengineer/.kube:/root/.kube' --rm bearengineer/awscli-kubectl kubectl get pods --all-namespaces
Dockerfile linksSubscribe to project updates by watching the bearengineer/awscli-kubectl GitHub repo.
The recommended way to get the Bear Engineer awscli-kubectl Docker Image is to pull the prebuilt image from the Docker Hub Registry.
$ docker pull bearengineer/awscli-kubectl:latest
To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.
$ docker pull bearengineer/awscli-kubectl:[TAG]
If you wish, you can also build the image yourself.
$ docker build -t bearengineer/awscli-kubectl:latest 'https://github.com/bearengineer/awscli-kubectl.git#master'
To run commands inside this container you can use docker run, for example to execute kubectl --version you can follow the example below:
$ docker run --rm --name kubectl bearengineer/awscli-kubectl:latest -- kubectl version
Consult the Kubectl Reference Documentation or the AWS CLI Reference Documentation to find the completed list of commands available.
AWS credentials can either be passed by environment variables, or by mounting a volume with aws credentials file under /root/.aws.
$ docker run -ti -e 'AWS_ACCESS_KEY_ID=********************' -e 'AWS_SECRET_ACCESS_KEY=****************************************' --rm bearengineer/awscli-kubectl aws s3 ls
docker run -ti -v '/Users/bearengineer/.aws:/root/.aws' --rm bearengineer/awscli-kubectl aws s3
Kubectl credentials can be passed by mounting a volume with the kubeconfig under /root/.kube.
docker run -ti -v '/Users/bearengineer/.kube:/root/.kube' --rm bearengineer/awscli-kubectl kubectl get pods
We'd love for you to contribute to this container. You can request new features by creating an issue, or submit a pull request with your contribution.
If you encountered a problem running this container, you can file an issue. For us to provide better support, be sure to include the following information in your issue:
docker version)docker infoCopyright (c) 2019 Bear Engineer. All rights reserved.
This work is licensed under the terms of the MIT license.
For a copy, see https://opensource.org/licenses/MIT.
Content type
Image
Digest
Size
54.4 MB
Last updated
about 7 years ago
docker pull bearengineer/awscli-kubectl