Skip to content

Commit

Permalink
fix: podman migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Nov 16, 2023
1 parent 1e187f1 commit 9dedf24
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ Get the pod name via `podman pod ls` and generate the Kubefile with:
podman kube generate <pod_name> -f pod.kube.yaml
```

### File permissions

Get the current ids with `stat <file>` or `stat <directory>`.

Give the permission to the podman user with `chown <podman_user>:<podman_group> <file>` or `chown -R <podman_user>:<podman_group> <directory>`.

Use podman to change the permission to the uid and gid found with `stat`.

```bash
podman unshare chown <uid>:<gid> <file>

# or

podman unshare chown -R <uid>:<gid> <directory>
```

### Persistent Volume Claim

Get the volume name via `podman volume ls` and generate the Kubefile with:
Expand Down

0 comments on commit 9dedf24

Please sign in to comment.