Utilizing Containers for HIPAA Compliant Applications
Containers are becoming increasingly popular in software development, with many companies containerizing their applications. Docker Containers offer the ability to develop software on any platform, build microservices, run a wide array of services, and cluster and scale applications as you grow. But as with any technology or deployment process, your team must decide on configuration and hosting. Is there such a thing as a HIPAA compliant container?
Containers by themselves are not “HIPAA compliant”. That said, some cloud services offer container services that can be configured in a compliant manner.

HIPAA Eligible Container Options for Amazon Web Services (AWS)
Utilizing AWS container services is a great way to leverage the scaling power of Amazon. Container orchestration on Amazon costs 70% less annually, over proprietary HIPAA platforms. The below services can be used in coordination with Amazon’s Business Associates Agreement (BAA):
Elastic Container Services (ECS) – Amazon ECS is a high-performance container orchestration service that can be used to add containers. ECS allows your team to instantly scale containerized applications and add additional containers as needed. ECS can be used in coordination with the EC2 Container Registry (ECR), which as a fully-managed Docker container registry to store, manage, and deploy Docker container images. ECS integrates other AWS platform services, including IAM, ECR, CloudWatch, CloudFormation, and CloudTrail and a native AWS API experience for containers, similar to EC2 and virtual machines.
Pros: Easy to scale, wide application availability, easy to maintain once configured
Cons: ECS learning curve
Elastic Compute Cloud (EC2) – Amazon EC2 offers organizations the option to manually configure virtual machines (VMs), install Docker, and manage containers on their own. With this configuration your team can install any variety of operating systems, software, or orchestration processes. Your organization can leverage DockerHub or setup a private container registry for storing and managing Docker container images.
Pros: More options on specifications, familiarity for many users, simpler pricing
Cons: Requires more DevOps configuration
Compliance Configuration
Required administrative and technical controls for compliance
Unfortunately, just using the services listed above does not make your organization or your application HIPAA compliant. Under Amazon’s Shared Responsibility Model and Amazon Business Associates Agreement (BAA), AWS is responsible for managing physical safeguards, but the cloud platform client is responsible for implementing technical and administrative safeguards required by HIPAA.
Organizations must develop and maintain administrative policies and procedures including:
- Employee Training Policy
- Disaster Recovery Policy
- Incident Response Policy
- Intrusion Detection and Vulnerability Scanning Policies
Technical solutions must be implemented to address HIPAA/HITECH requirements including:
- Backup and Recovery
- Data Encryption
- Firewall and Network Settings
- Audit Logging
- Intrusion Detection
These technical services can be configured using AWS services, but must be setup and maintained by your team. Dash offers one deployment for configuring and monitoring HIPAA compliance within your AWS account.
FAQ: Container Security for HIPAA Workloads on AWS
What is the biggest container risk in a healthcare environment?
The container image itself. Base images, dependencies, and build artifacts can carry vulnerabilities or embedded credentials into production. Scan images in the pipeline, rebuild regularly rather than only at release time, and block deployment of images that fail your threshold. A vulnerable image running with broad permissions is the most common path from a code issue to exposed ePHI.
How should secrets be handled in containerized applications?
Do not bake credentials into images or pass them as plain environment variables in task definitions. Retrieve them at runtime from a secrets manager or parameter store, scoped to the specific workload, and rotate them. Ensure that secrets are not written to logs or captured in crash dumps, and that only the task role can read them.
Should containers run as root?
No. Run processes as a non-root user, make the filesystem read-only where the application allows it, and drop unnecessary Linux capabilities. If a container is compromised, these settings limit what the attacker can do inside it and make escape attempts harder. Enforce them through your task definition or pod security policy rather than relying on developer discipline.
What is the difference between ECS on EC2 and Fargate for compliance purposes?
With ECS on EC2 you manage the host instances, including patching, hardening, and the container runtime, so those become your controls to evidence. With Fargate the host layer is managed by AWS, which removes some patching burden but does not change your responsibility for the task definition, image, IAM role, and network configuration. Choose based on operational capacity, not on an assumption that one is inherently more compliant.
How do I isolate workloads that handle PHI from other applications?
Separate them at the network and account level rather than relying on namespace separation within a shared cluster. Use dedicated VPCs or subnets, security groups that permit only required flows, and separate IAM roles per workload. Where a shared cluster is unavoidable, enforce network policies and resource quotas so one workload cannot reach another’s traffic or data.
What should be logged from a containerized workload?
Log authentication and authorization decisions, access to sensitive endpoints, administrative actions, and container lifecycle events such as task starts, stops, and image pulls. Centralize logs outside the container so they survive termination, and restrict who can modify or delete them. Application logs must be scrubbed of PHI before they leave the workload.
How do I keep container hosts and orchestration layers patched?
Treat the host AMI, the container runtime, and the orchestrator as separate patch surfaces with their own cadences. Automate image rebuilds for base OS updates, replace rather than patch running containers, and track the version of each layer in use. Record patch status as evidence, since “we patch regularly” is not verifiable without a record.
Does running containers in Kubernetes change my HIPAA obligations?
No. EKS or self-managed Kubernetes shifts where controls are implemented, not who is accountable. You remain responsible for API server access, RBAC, network policy, secrets, admission control, and node hardening. Managed control planes reduce some operational work but leave the configuration and monitoring of the cluster squarely with you.
How do I prevent PHI from leaking through container registries or build systems?
Restrict registry access, scan images for embedded data as well as vulnerabilities, and keep production data out of build and test pipelines entirely. Use synthetic or de-identified data for testing, and verify that CI logs and build artifacts do not capture environment contents. Registry and pipeline permissions should be as tightly scoped as production access.
What evidence should I keep for container compliance?
Maintain image scan results, approved base image lists, task or pod definitions under version control, IAM role definitions, network policies, patch records, and deployment approvals. Retain logs showing who deployed what and when. This is the evidence an auditor will request, and it is far easier to collect continuously than to reconstruct after the fact.

