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

rkt driver should remove pods when stopping tasks #3561

Closed
schmichael opened this issue Nov 16, 2017 · 1 comment
Closed

rkt driver should remove pods when stopping tasks #3561

schmichael opened this issue Nov 16, 2017 · 1 comment

Comments

@schmichael
Copy link
Member

Nomad version

0.7.0

Operating system and Environment details

Linux, rkt 1.29.0

Issue

Docker removes containers once they exit: https://github.com/hashicorp/nomad/blob/master/client/driver/docker.go#L1685-L1688

rkt does not:

https://github.com/hashicorp/nomad/blob/master/client/driver/rkt.go#L769-L787

Reproduction steps

nomad run rkt.nomad # see below
nomad stop echo
rkt list
# echo's container still exists

Job file (if appropriate)

job "echo" {
  datacenters = ["dc1"]

  group "echo" {
    task "echo" {
      driver = "rkt"

      config {
        image = "docker://ubuntu"
        command = "/foo/ping"
        args    = ["google.com"]
        dns_servers = ["host"]
        volumes = ["/bin:/foo"]
      }

      resources {
        network {
          mbits = 10
        }
      }
    }
  }
}
@github-actions
Copy link

github-actions bot commented Dec 5, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant