README.md aktualisiert
This commit is contained in:
parent
09dba9ae07
commit
b70f746c23
1 changed files with 11 additions and 1 deletions
12
README.md
12
README.md
|
|
@ -7,10 +7,20 @@ podman pull git.berger.ruhr/alwin/dev-pod:fret
|
||||||
```
|
```
|
||||||
## create the contaienr
|
## create the contaienr
|
||||||
Point WORKDIR to whererver your repos are.
|
Point WORKDIR to whererver your repos are.
|
||||||
Point FRETHOME to some other directory, which can cuntions as the home directory inside the container.
|
Point FRETHOME to some other directory, which can serve as the home directory inside the container.
|
||||||
|
Make sure to initialize an ssh config under $FRETHOME
|
||||||
```sh
|
```sh
|
||||||
podman create --name fretpod -p 2222:22 -v basestore:/nix/store -v $FRETHOME:/root -v $WORKDIR:/root/WORK git.berger.ruhr/alwin/dev-pod:fret
|
podman create --name fretpod -p 2222:22 -v basestore:/nix/store -v $FRETHOME:/root -v $WORKDIR:/root/WORK git.berger.ruhr/alwin/dev-pod:fret
|
||||||
```
|
```
|
||||||
|
## start and enter the container
|
||||||
|
```sh
|
||||||
|
# start
|
||||||
|
podman start fretpod
|
||||||
|
# enter using ssh
|
||||||
|
ssh -p 2222 root@127.0.0.1
|
||||||
|
# or enter directly using podman
|
||||||
|
podman exec -it fretpod zsh
|
||||||
|
```
|
||||||
## (optinal) auto-start the container
|
## (optinal) auto-start the container
|
||||||
```sh
|
```sh
|
||||||
podman generate systemd basepod > ~/.config/systemd/user/basepod.service
|
podman generate systemd basepod > ~/.config/systemd/user/basepod.service
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue