From the course: Docker on AWS
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Container persistence models
- [Instructor] There are a couple of different models of persistent or quasi-persistent storage available within the ECS environment. For Fargate environments in general, tasks only support nonpersistent storage. There is a way to actually leverage the EC2 volume model with a Fargate task, but it has to be on an EC2 instance, so it's not quite as Fargate-y as a Fargate-based resource. But specifically with Fargate, it is still possible to create a storage target and a storage target that is at least available within a specific task. And that's useful for sharing data between containers within a task. We'll actually be looking at that in another video. For EC2, we can use all of the standard docker volume based plugins and pluggable storage, and so we can actually get decent performance because we can talk directly to an ECS volume and associate an ECS volume with a task. We can also get persistence. So, if you do want to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.