Skip to content

Commit

Permalink
nixos/podman: Fix docker network rm
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed May 25, 2021
1 parent 1ea9948 commit 5a91363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/virtualisation/podman.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ in

systemd.packages = [ cfg.package ];

systemd.services.podman.path = [
pkgs.iproute2
];
systemd.services.podman.serviceConfig = {
ExecStart = [ "" "${cfg.package}/bin/podman $LOGGING system service" ];
};
Expand Down
1 change: 1 addition & 0 deletions nixos/tests/podman.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ import ./make-test-python.nix (
podman.succeed("podman ps | grep sleeping")
podman.succeed("docker stop sleeping")
podman.succeed("docker rm sleeping")
podman.succeed("docker network rm default")
with subtest("A podman non-member can not use the docker cli"):
podman.fail(su_cmd("docker version", user="mallory"))
Expand Down

0 comments on commit 5a91363

Please sign in to comment.