Skip to content

Instantly share code, notes, and snippets.

Last active Oct 23, 2020
What would you like to do?
Lightsail Container Docker Image
FROM amazon/aws-cli
# RUN yum install -y curl groff git
RUN amazon-linux-extras install docker
# download and install lightsailctl as per
RUN curl "" -o "/usr/local/bin/lightsailctl"
RUN chmod u+x /usr/local/bin/lightsailctl
RUN export PATH=/user/local/bin:$PATH
# build with
# docker build -t lightsail-cli . -f Dockerfile.public
# launch with
# docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v ~/.aws:/root/.aws lightsail-cli lightsail get-regions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment