Changes
Page history
Update Useful commands
authored
Dec 20, 2021
by
Nikolai.Hartmann
Show whitespace changes
Inline
Side-by-side
Useful-commands.md
View page @
744bb84d
...
...
@@ -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
```