Skip to content

[Bug]: container network delete --all tries to delete default network. #1073

Closed

Description

@jglogan

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

container network delete --all

Current behavior

% container network delete --all
Warning! Running debug build. Performance may be degraded.
failed to delete network default: invalidArgument: "cannot delete system subnet default"
Error: internalError: "delete failed for one or more networks: ["default"]"

Expected behavior

  1. container network delete --all prints any deleted resources to stdout, like any resource delete command.
  2. The operation does not try to delete system-owned resources, such as the default network.

Preferably, the implementation would transition us from using hardcoded names to labels, so that it's easier to reason about resources regardless of resource type. We could use a com.apple.container.something label key that indicates a system managed resource that should be filtered out of delete commands.

Environment

- OS: 26
- Xcode: 26
- Container: main

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    facet/network
    on Jan 21, 2026
  2. added theissue type on Jan 21, 2026
  3. added a commit that references this issue on Jan 23, 2026
    5746ec3
  4. added a commit that references this issue on Jan 27, 2026
    043b87d
  5. added a commit that references this issue on Feb 4, 2026
    8b79ec5
  6. added a commit that references this issue on Feb 18, 2026
    61c0378
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

    facet/network

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions