Update README for 21.05
This commit is contained in:
parent
1a24fe9639
commit
a2f5c9415c
1 changed files with 17 additions and 4 deletions
|
@ -39,6 +39,12 @@ Arion allows to compose containers with different granularity:
|
||||||
* <<NixOS: run full OS>>
|
* <<NixOS: run full OS>>
|
||||||
* <<Docker image from DockerHub>>
|
* <<Docker image from DockerHub>>
|
||||||
|
|
||||||
|
Full NixOS is supported on
|
||||||
|
* docker-compose + podman with docker socket (NixOS >= 21.05)
|
||||||
|
* docker-compose + docker, before cgroupsv2 (NixOS < 21.05)
|
||||||
|
|
||||||
|
`podman-compose` support is currently WIP on a separate branch.
|
||||||
|
|
||||||
== Installation
|
== Installation
|
||||||
|
|
||||||
=== Nix
|
=== Nix
|
||||||
|
@ -52,10 +58,17 @@ $ nix-env -iA arion -f https://github.com/hercules-ci/arion/tarball/master
|
||||||
Add this module to your NixOS configuration:
|
Add this module to your NixOS configuration:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{ ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = [ (import (builtins.fetchTarball https://github.com/hercules-ci/arion/tarball/master) {}).arion ];
|
environment.systemPackages = [
|
||||||
virtualisation.docker.enable = true;
|
pkgs.arion
|
||||||
users.extraUsers.myuser.extraGroups = ["docker"];
|
pkgs.docker # docker CLI will use podman socket
|
||||||
|
];
|
||||||
|
virtualisation.docker.enable = false;
|
||||||
|
virtualisation.podman.enable = true;
|
||||||
|
virtualisation.podman.dockerSocket.enable = true;
|
||||||
|
|
||||||
|
# Use your username instead of `myuser`
|
||||||
|
users.extraUsers.myuser.extraGroups = ["podman"];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue