terraform-provider-docker icon indicating copy to clipboard operation
terraform-provider-docker copied to clipboard

Support for cgroup option

Open kakoni opened this issue 1 year ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

I'm trying to run systemd container (rocky) using docker desktop for Mac using this provider. As per https://github.com/docker/for-mac/issues/6073 Containers running systemd need the following options: --privileged --cgroupns=host -v /sys/fs/cgroup:/sys/fs/cgroup:rw. however I believe there is no cgroupns option for docker_container resource.

New or Affected Resource(s)

  • docker_container

Potential Terraform Configuration

resource "docker_container" "rocky" {
  name        = "rocky"
  image       = docker_image.rocky.image_id
  privileged = "true"
  cgroupns = "host"

kakoni avatar Sep 28 '22 12:09 kakoni