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

[ECS][Request] runtime configuration for containers #1072

Open
roleyfoley opened this issue Sep 11, 2020 · 1 comment
Open

[ECS][Request] runtime configuration for containers #1072

roleyfoley opened this issue Sep 11, 2020 · 1 comment
Labels
ECS Amazon Elastic Container Service Proposed Community submitted issue

Comments

@roleyfoley
Copy link

Summary

Add the ability to set the runtime parameter ( https://docs.docker.com/engine/reference/commandline/dockerd/#docker-runtime-execution-options ) for ECS tasks

Description

In CI/CD pipelines which use ECS based agents its common to require access to a docker daemon for image builds, docker-compose testing etc.

Following the guidance of this blog post ( https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ ) the recommended and safe approach is to bind mount the /var/run/docker.sock through to the agent containers. This allows for the agent to run docker commands on the ECS Instance but does run into some issues.

  • Port conflicts when using docker-compose testing which has exposed host ports
  • Access to bind mounted volumes between the host and the agent
  • Security issues with the potential for agents to interact with other docker processes running on the host

To get around some of these, mostly around port conflicts and host access you can create docker in docker side car containers and other workarounds however they generally require privileged containers

The blog post above has been updated to introduce sysbox which creates isolated containers that allow for system level access to resources within the container rather than having to give the container privileged access. To use this service you need to be able to override the runtime to use the sysbox runtime instead of the standard docker runc runtime.

Expected Behavior

When defining a container as part of a task definition the runtime value can be set for the task.

Observed Behavior

Option only available through the nvidia runtime configuration which has a specific purpose

@fierlion
Copy link
Member

#673 <- we have a similar request in our containers roadmap which originated in our ecs-init repo (https://github.com/aws/amazon-ecs-init)

I'll move this to the containers-roadmap as well and link the two issues.

@fierlion fierlion transferred this issue from aws/amazon-ecs-agent Sep 11, 2020
@fierlion fierlion changed the title runtime configuration for containers [ECS][Request] runtime configuration for containers Sep 11, 2020
@fierlion fierlion added ECS Amazon Elastic Container Service Proposed Community submitted issue labels Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ECS Amazon Elastic Container Service Proposed Community submitted issue
Projects
None yet
Development

No branches or pull requests

2 participants