Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting EBS Volumes requires ECS Agent and Docker restart #799

Closed
tsturzl opened this issue May 10, 2017 · 2 comments
Closed

Mounting EBS Volumes requires ECS Agent and Docker restart #799

tsturzl opened this issue May 10, 2017 · 2 comments

Comments

@tsturzl
Copy link

tsturzl commented May 10, 2017

I spent most of today trying to get an EBS volume mounted on a docker container. I found in another ticket that I need to restart docker and thus ecs agent to get the volumes to mount. This seems like a bug to me. Once I did restart docker and the ecs agent I was able to mount the volume to my container by specifying it in my task and container definitions. Is there anyway to fix this issue?

@jhaynes
Copy link
Contributor

jhaynes commented May 12, 2017

Sorry for the frustration @tsturzl.

Specifically, this was because Docker runs in a private mount namespace. See moby/moby#10225 and moby/moby#22806 for more detail.

@samuelkarp
Copy link
Contributor

Closing this; we should have closed this a while ago. Recent releases of the docker package for Amazon Linux (since 17.03.1, if my memory serves me correctly) no longer use a private mount namespace, so you no longer need to restart Docker when attaching and mounting EBS volumes in order to use those mountpoints in your task definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants