Skip to content

Amazon Linux 2 container image with systemd and Docker Engine

License

Notifications You must be signed in to change notification settings

nikovirtala/amazonlinux-dind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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