Changes
Page history
Update Useful commands
authored
Jan 10, 2022
by
Nikolai.Hartmann
Show whitespace changes
Inline
Side-by-side
Useful-commands.md
View page @
bb38d2de
...
...
@@ -13,15 +13,13 @@ 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)*
run a command in a temporary container using the xcache image (as xrootd user)
```
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)
*(currently not working since we run on read/write image)*
```
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)
```
...
...
...
...