Skip to content

Container network namespaces are not cleaned up after use #15

Closed

Description

@jboddey

Output of ls in netns folder shows:

/run/netns# ls
tr-ctns-dhcp tr-ctns-dns tr-ctns-gateway

Network namespaces should be cleared during the network restore function.

Activity

  1. jboddey commented on Apr 28, 2023

    @jboddey
    ContributorAuthor

    @jhughesbiot @noursaidi Any thoughts on this? It does not seem to break anything but would prefer if we could remove these. For some reason, running rm -rf in that folder didn't seem to do the trick.

  2. jhughesoti commented on Apr 28, 2023

    @jhughesoti
    Contributor

    You should be able to clear them with this command and filter for tr namespaces:

    sudo ip netns | grep tr | sudo xargs -r -t -n 1 ip netns del

    Might be able to remove the sudos depending on how we run the command.

  3. transferred this issue fromon May 4, 2023
  4. linked a pull request that will close this issueIp control #51on Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions