Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


If you are OSX user:
AWS is considering time skew when validating credentials. You can have a time drift on your Docker machine. You should run periodically docker-machine ssh $docker_machine 'sudo ntpclient -s -h' to sync the clock. For details see

For boto3 running corectly you must provide AWS credentials and eventual AWS configuration. The easiest way to achieve that is to mount ~/.aws directory to the container's /root/.aws.

Running example script may look like this: docker run --rm -it -v ~/.aws:/root/aws:ro -v $(pwd):$(pwd)-w $(pwd) kopiczko/boto3 YOUR_SCRIPT_USING_BOTO3.

It's good idea to make an alias like:

alias boto3='docker run --rm -it -v ~/.aws:/root/.aws:ro -v $(pwd):$(pwd) -w $(pwd) kopiczko/boto3 "$@"'

After that you can run your boto3 scripts like:


Dockerfile for the image

FROM alpine:latest
MAINTAINER Pawel Kopiczko <>

RUN apk --no-cache add \
  python3 \
  && \
  pip3 install boto3
Docker Pull Command