Update Useful commands authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
......@@ -14,10 +14,12 @@ journalctl -eu systemd-nspawn@xcache [--since ...]
# container commands
run a command in a new container using the xcache image (as xrootd user)
(currently not working since we run on read/write image)
```bash
systemd-nspawn -D /var/lib/machines/xcache <command>
```
get a shell (as xrootd user)
(currently not working since we run on read/write image)
```bash
systemd-nspawn -D /var/lib/machines/xcache /bin/bash
```
......@@ -25,3 +27,8 @@ get a shell in a running container (as root, usually not nescessary)
```
nsenter --target=$(machinectl show --property Leader xcache | sed "s/^Leader=//") --all
```
inside, one can then switch to a shell as the xrootd user with e.g.
```
su -s /bin/bash xrootd
```