This image offers a pre-configured environment with Ubuntu 22.04, Docker, AWS CLI, and Tailscale.
99
This image offers a pre-configured environment with Ubuntu 22.04, Docker, AWS CLI, and Tailscale. It’s perfect for managing containers, automating cloud infrastructure, and enabling secure networking. Key Features:
Ubuntu 22.04: Lightweight and stable base image.
Docker Engine & Compose: Manage containers and multi-container applications efficiently.
AWS CLI: Easily interact with AWS services to streamline cloud tasks.
Tailscale: Secure, zero-config VPN to connect distributed services effortlessly.
Essential Utilities: Includes curl, unzip, and other key tools for scripting and troubleshooting.
DevOps & Cloud Management: Automate AWS resource management and container orchestration.
Private Networking: Utilize Tailscale to enable secure communication between services.
Docker-in-Docker (DinD): Run Docker containers inside containers for CI/CD pipelines or testing.
Add the following configuration to your docker-compose.yml:
services:
aws-docker:
image: devibhattaraii/docker-aws-tailscale:v0.1.0
container_name: aws-docker-tailscale
build:
context: .
dockerfile: Dockerfile
restart: always
platform: linux/amd64
Then, run the service using:
docker-compose up -d
This setup ensures the container runs persistently with automatic restarts.
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update
RUN apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
RUN apt-get install -y curl unzip
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN curl -fsSL https://tailscale.com/install.sh | sh
CMD ["sleep", "infinity"]
You should run the following command in CI/CD before initializing the ssh commands.
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 &
tailscale up --authkey $TAILSCALE_AUTH_KEY --accept-routes --accept-dns=false```
Content type
Image
Digest
sha256:6e11e60a5…
Size
497.3 MB
Last updated
about 2 years ago
docker pull devibhattaraii/docker-aws-tailscale:v0.1.0