Update Useful commands authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
...@@ -13,15 +13,13 @@ journalctl -eu systemd-nspawn@xcache [--since ...] ...@@ -13,15 +13,13 @@ journalctl -eu systemd-nspawn@xcache [--since ...]
``` ```
# container commands # container commands
run a command in a new container using the xcache image (as xrootd user) run a command in a temporary container using the xcache image (as xrootd user)
*(currently not working since we run on read/write image)*
```bash ```bash
systemd-nspawn -D /var/lib/machines/xcache <command> systemd-nspawn --volatile=overlay -M xcache-$(uuidgen) --private-users=655360 -u xrootd -D /var/lib/machines/xcache <command>
``` ```
get a shell (as xrootd user) get a shell (as xrootd user)
*(currently not working since we run on read/write image)*
```bash ```bash
systemd-nspawn -D /var/lib/machines/xcache /bin/bash systemd-nspawn --volatile=overlay -M xcache-$(uuidgen) --private-users=655360 -u xrootd -D /var/lib/machines/xcache /bin/bash
``` ```
get a shell in a running container (as root, usually not nescessary) get a shell in a running container (as root, usually not nescessary)
``` ```
... ...
......