# Has anyone experience with AWS EC2 Container Service?

**URL:** https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432
**Category:** Self-hosting
**Tags:** hosting
**Created:** [2015年九月18日 09:12 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432 "2015-09-18T09:12:50Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2015年九月18日 09:12 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/1 "2015-09-18T09:12:50Z")

</div>

Is anyone running Discourse on AWS’s new EC2 Container Service? Is it recommendable? Are there any known issues with managing them?

Thanks

https://www.youtube.com/embed/zBqjh61QcB4?feature=oembed&wmode=opaque

And a little bit longer… ;oP

[![](https://global.discourse-cdn.com/meta/original/4X/b/2/5/b2592c6e4a961a2f0ac8ad59ef8b7dd36580b4ca.jpeg "AWS Summit San Franisco 2015: Manage Docker-Enabled Apps in EC2 with Amazon ECS") ](https://www.youtube.com/watch?v=c0EnHl3o-L4)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2015年九月18日 21:10 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/2 "2015-09-18T21:10:24Z")

</div>

It doesn’t work, because of a couple reasons:

- (principally) the bootstrapping process, where all your configuration is applied & the database seeded, involves running code in the container, stopping the container, then starting it again with a different pid1
- backups are broken because the pg\_dump binary is mismatched with the server
- several other odd differences break other stuff, too (can’t remember right now)

---

<div class="post-metadata">

### Author: ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)
#### Post date: [2017年十一月3日 14:55 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/3 "2017-11-03T14:55:54Z")

</div>

Any update/improvement on this, two years later?

Or will this never ever work at all with EC2 Container Services?

---

<div class="post-metadata">

### Author: ![rootsh3ll](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rootsh3ll/32/119507_2.png) [@rootsh3ll](https://meta.discourse.org/u/rootsh3ll)
#### Post date: [2017年十一月3日 15:03 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/4 "2017-11-03T15:03:27Z")

</div>

not sure about container service but I am running discourse under docker along with a side on wordpress(non-dockerised) and not facing issues managing them. as it is being reverse-proxied by nginx to the discourse container.  
so everything is organised.

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [2017年十一月3日 19:54 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/5 "2017-11-03T19:54:33Z")

</div>

A container service manages docker and the base OS for you AFAIK. You don’t have root access. You just throw a container in and the service runs it.

Discourse requires root access to config.

---

<div class="post-metadata">

### Author: ![rootsh3ll](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rootsh3ll/32/119507_2.png) [@rootsh3ll](https://meta.discourse.org/u/rootsh3ll)
#### Post date: [2017年十一月3日 20:03 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/6 "2017-11-03T20:03:05Z")

</div>

but on EC2 you do have root access.  
As OP said discourse doesn’t work on ECS. I wonder why? even when you have root access.

AFAIK, ECS is simply EC2 running docker for you. so, I wonder why it cannot run discourse on ECS. whilst I am running discourse on EC2.

PS: don’t mind If I am wrong. I don’t know much about ECS

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [2017年十一月3日 21:25 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/7 "2017-11-03T21:25:30Z")

</div>

ECS takes away the OS and decker management from you. For example they manage all the upgrades and patches. You dont have to do those. So it is not a complete VM. It is a managed service. You only provide a container.

---

<div class="post-metadata">

### Author: ![rootsh3ll](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rootsh3ll/32/119507_2.png) [@rootsh3ll](https://meta.discourse.org/u/rootsh3ll)
#### Post date: [2017年十一月3日 21:38 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/8 "2017-11-03T21:38:21Z")

</div>

This way it’s impossible to run discourse on ECS. since discourse needs to be _root_

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2017年十一月3日 21:50 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/9 "2017-11-03T21:50:59Z")

</div>

> [@rootsh3ll](#):
>
> since discourse needs to be root

Can you explain why? Is there any post at meta that’s linked on this topic?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2017年十一月3日 21:56 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/10 "2017-11-03T21:56:45Z")

</div>

It will work fine on Ecs , bootstrap an image push to registry and then specify env and volumes

---

<div class="post-metadata">

### Author: ![rootsh3ll](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rootsh3ll/32/119507_2.png) [@rootsh3ll](https://meta.discourse.org/u/rootsh3ll)
#### Post date: [2017年十一月3日 22:00 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/11 "2017-11-03T22:00:15Z")

</div>

as sam confirms above, it should work on ecs.

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [2017年十一月3日 22:00 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/12 "2017-11-03T22:00:38Z")

</div>

That’s right. I suppose the container must be prebuilt outside for the exact config then thrown into ECS.

---

<div class="post-metadata">

### Author: ![rootsh3ll](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rootsh3ll/32/119507_2.png) [@rootsh3ll](https://meta.discourse.org/u/rootsh3ll)
#### Post date: [2017年十一月3日 22:01 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/13 "2017-11-03T22:01:33Z")

</div>

will try that and possibly write a thorough article for more people to come 🙂 Thanks sam

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2017年十一月3日 22:02 UTC](https://meta.discourse.org/t/has-anyone-experience-with-aws-ec2-container-service/33432/14 "2017-11-03T22:02:06Z")

</div>

A lot of config can be provided via env on a bootstrapped image, majority of it
