Skip to content

Instantly share code, notes, and snippets.

@ollypom
ollypom / ecs-mi-dind.md
Created January 6, 2026 20:20
Running Docker in Docker on Amazon ECS Managed Instances

Using Docker in Docker on Amazon ECS Managed Instances

While it is not possible to run Docker in Docker (DIND) on Amazon ECS with AWS Fargate, for those building with the new Amazon ECS Managed Instances, please find the steps below to run Docker in Docker via a privileged Task on ECS MI.

1. Export local AWS account details

We assume the following resources already exist: ECS Cluster, ECS Managed Instances Capacity Provider, ECS Task Execution Role, VPC (with subnets), VPC Security Group (no ingress rules required).

AWS_ACCOUNT_ID="111222333444"
@ollypom
ollypom / sg-cloudformation.yaml
Created May 13, 2021 13:42
Voting App Networking
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS Infrastructure for Voting App
Parameters:
VpcCidr:
Description: CIDR Range for the VPC
Type: String
Default: 10.0.0.0/16
AllowedPattern: ([0-9]{1,3}\.){3}[0-9]{1,3}($|/(16|24))
PublicSubnetOneCidr:
@ollypom
ollypom / imagedigest.py
Created February 19, 2021 10:31
Script to Calculate Image Digest
import json
import hashlib
import requests
def get_docker_hub_data(repo, image, tag):
auth_url="https://auth.docker.io/token"
registry_url="https://index.docker.io/v2"
# Get Login Token
print('Getting Docker Hub Auth Token')
@ollypom
ollypom / makevms.sh
Created August 22, 2017 09:59
Azure Make VMS
# Set variables
RG=olly-rg
VNET=olly-vnet
SUBNET=olly-subnet
NSG=olly-nsg
IMAGE=UbuntuLTS
# Create Resource Group

Keybase proof

I hereby claim:

  • I am ollypom on github.
  • I am ollypom (https://keybase.io/ollypom) on keybase.
  • I have a public key ASCdqC27gNelRiPwxJfGU-IDpAhCPWBAxWLAPPjhUAin6Qo

To claim this, I am signing this object: