/amazonlinux-dind

Amazon Linux 2 container image with systemd and Docker Engine

Primary LanguageDockerfileMIT LicenseMIT

Amazon Linux 2 - Docker in Docker (dind)

Amazon Linux 2 container image with systemd and Docker Engine.

Registries

The image is available on following registries:

Usage

Build container image

docker build -t amazonlinux-dind:latest .

Create the container and run it on background (local build)

docker run -d --name amazonlinux-dind \
  --privileged \
  -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
  amazonlinux-dind:latest

Create the container and run it on background (Docker Hub)

docker run -d --name amazonlinux-dind \
  --privileged \
  -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
  nikovirtala/amazonlinux-dind:latest

Create the container and run it on background (Amazon ECR Public Gallery)

docker run -d --name amazonlinux-dind \
  --privileged \
  -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
  public.ecr.aws/nikovirtala/amazonlinux-dind:latest

Create the container and run it on background (GitHub Packages)

docker run -d --name amazonlinux-dind \
  --privileged \
  -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
  ghcr.io/nikovirtala/amazonlinux-dind:latest

Enter to the container

docker exec -it amazonlinux-dind /bin/bash

Stop the container

docker stop amazonlinux-dind

Start the container

docker start amazonlinux-dind

Remove the container

docker rm -f amazonlinux-dind